npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

express-nuts

0.2.0 • Public • Published

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

install

npm i express-nuts

Downloadsweekly downloads

1

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability