Nuts template engine plugin for Expressjs 4
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
LICENSE
README.md
index.js
package.json

README.md

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
// `templates folder` is './templates' by default
app.set( 'templates folder', './myFolder' );

// set nuts as template engine
expressNuts( app, nuts );



© 2014 Jacobo Tabernero - jacoborus

Released under MIT License