var middleware = require('{%= name %}');
var assemble = require('assemble-core');
// create your app
var app = assemble();
// register the middleware
app.use(middleware());
The following middleware are included. {%= apidocs('index.js') %}
Customize the regex used for matching JSON files.
Example
app.use(middleware({jsonRegex: /\.json$/}));
Customize the regex used for matching template file extensions.
Example
app.use(middleware({jsonRegex: /\.(hbs|tmpl)$/}));
Customize the regex used for matching the extensions of files with templates to escape.
Example
app.use(middleware({jsonRegex: /\.(tmpl|hbs)$/}));