UNPKG

verb

Version:

A project without documentation is like a project that doesn't exist. Verb solves this by making it dead simple to generate docs, using simple markdown templates, with zero configuration required.

30 lines (25 loc) 653 B
var template = module.exports = {}; template.list = [ '{% _.forEach(list, function(fn) { %}', '* {%- fn %}\n', '{% }); %}' ].join(''); template.md = [ '{% _.forEach(list, function(fn) { %}', '## {%- fn %}\n', 'Type: `undefined`\n\n', 'Default: `undefined`\n\n', '{% }); %}' ].join(''); template.yaml = [ '# =============================================', '# API methods for {%= name %}', '# =============================================', '{% _.forEach(list, function(fn) { %}', '{%- fn %}:', ' type: undefined', ' default: foo', ' description: bar', ' example: baz', '{% }); %}' ].join('\n');