generator
documentjs.generator
{function(docMapPromise, The)}
A generator module should produce a function that takes the following shape. Generator modules are used to produce some form of documentation output. generators.html is the default and currently only generator packaged with DocumentJS.
Use
The following exports a generator function that builds a JSON output of the docObject: