Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacoborus/express-nuts

Nuts template engine plugin for Expressjs 4
https://github.com/jacoborus/express-nuts

Last synced: about 1 month ago
JSON representation

Nuts template engine plugin for Expressjs 4

Awesome Lists containing this project

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
-----

```js
// 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](https://github.com/jacoborus)

Released under [MIT License](https://raw.github.com/jacoborus/express-nuts/master/LICENSE)