connect-mustache-middleware

0.0.4 • Public • Published

mustache-engine

Connect middleware to compile requested html file as a mustache template before serving the response. Also allow mustache partials to be included using file system.

Example

var mustacheEngine = require('connect-mustache-middleware');
 
connect().use(mustacheEngine.middleware({
    rootDir: '.tmp', // path to look mustache templates
    dataDir: 'mock/data' // path to look for JSON data files
}))
 

Installation

npm install connect-mustache-middleware

Features

  • Works as connect middleware and compile requested HTML file as mustache template.
  • Allow mustache partials to be included using file system.

/connect-mustache-middleware/

    Package Sidebar

    Install

    npm i connect-mustache-middleware

    Weekly Downloads

    3

    Version

    0.0.4

    License

    ISC

    Last publish

    Collaborators

    • alex.bowen
    • rrawat.dev