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.

18 lines (14 loc) 333 B
/** * Example custom tag that appends a string to source content. * * @param {String} str Source content * @return {String} */ module.exports = function(verb) { var tags = {}; tags.append = function(filepath, str) { var content = verb.file.read(filepath); return content + '\n' + str; }; return tags; };