cbou / markdox

Markdox is a documentation generator based on Dox and Markdown. It parse Javascript and even Coffeescript.
http://cbou.github.com/markdox
230 stars 27 forks source link

Get the docs data in a variable #30

Closed IonicaBizau closed 9 years ago

IonicaBizau commented 9 years ago

Is it possible not to write the docs in a file but get them in a variable/parameter?

IonicaBizau commented 9 years ago

That's actually simple:

MarkDox.process("path/to/some/file.js", {
    template: "some/template.ejs"
}, function (err, content) {
    // do something with content
});