nunjucks-middleware

Middleware for recompiling nunjucks templates on the go

npm install nunjucks-middleware
9 downloads in the last month

Nunjucks Middleware

See example/

 app.use(nunjucksMiddleware({
    src: "/views",
    output: "/public/js/templates.js",
    endpoint: "/js/templates.js",
    express: app,
    debug: true
  }));
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
npm loves you