verb
Version:
Verb makes it easy to build project documentation using simple markdown templates, with zero configuration required.
11 lines • 525 B
JavaScript
module.exports = [
'{% _.each(files, function(file) { %}',
'## [{%= file.name %}]({%= file.path %})',
'{% _.each(file.comments, function(comments) { %}',
'{% _.each(comments, function(comment) { %}',
'{%= comment.name ? \'### [\' + comment.name + \'](\' + file.path + \'#L\' + comment.line + \')\': \'\' %}',
'{%= _.strip(comment.description) %}',
'{% _.each(comment.params, function(param) { %}',
'* `{%= param.name %}`: ({%= param.type %}): {%= param.description %}',
'{% }); %} {% }); %} {% }); %} {% }); %}'
].join('\n');