express-nuts
v0.2.0
Published
Nuts template engine adapter for Express.js
Downloads
9
Readme
express-nuts
Nuts template engine adapter for Express.js.
This module will add templates from Express views folder with filename as template keyname, but templates from ./templates
folder will be added with its regular keynames
Installation
npm install express-nuts --save
Usage
// get your dependencies
var express = require('express');
var app = express();
var nuts = require('nuts');
var expressNuts = require('express-nuts');
// specify the views directory
app.set('views', './views');
// (optional) specify the regular templates directory
app.set( 'templates folder', './myFolder' );
// set nuts as template engine
expressNuts( app, nuts );
© 2014 Jacobo Tabernero - jacoborus
Released under MIT License