UNPKG

verb

Version:

Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.

17 lines (14 loc) 333 B
'use strict'; /** * `append` post-render middleware. * * If a string is defined on `verb.cache.data.append`, * it will be appended to the content of every file * that matches the route. */ module.exports = function(app) { return function (file, next) { file.content += app.get('data.append') || ''; next(); }; };