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