Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 783 Bytes

.verb.md

File metadata and controls

49 lines (31 loc) · 783 Bytes

Usage

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

app.use(middleware({jsonRegex: /\.json$/}));

options.extRegex

Customize the regex used for matching template file extensions.

Example

app.use(middleware({jsonRegex: /\.(hbs|tmpl)$/}));

options.escapeRegex

Customize the regex used for matching the extensions of files with templates to escape.

Example

app.use(middleware({jsonRegex: /\.(tmpl|hbs)$/}));