-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a preprocessor config that can modify the raw data payload from the parser before it goes to the doc generator #212
Comments
we just need a volunteer for this one :) |
Ok I will give it a go as I also need this... What do you think about this spec: in options there would be an option like this: options: { The config option is called preprocessor (singular), and can be a single string because in most cases it would be probably be used that way. It can however also be an array of strings, in which case it would be considered to be a chain of preprocessors to be applied in the same order as they are defined. The preprocessors would refer to files that would be loaded with require, hence they would be node modules. The modules should export a single function. This function should accept a single parameter, which would be the data to be processed. The function is expected to modify the data as it see fit. The return value from the function is not important. That's the first draft... Questions that arose when I wrote that:
|
the first installment of the preprocessors is in 0.3.50, try it, test it, feedback and lets iterate on it. |
This feature will allow anyone to control the data passed into the generator of the parser, and since the user controls the template, she/he will have full control over new flags and entries.
The text was updated successfully, but these errors were encountered: