Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jacoborus/express-nuts
- Owner: jacoborus
- License: mit
- Created: 2014-12-09T02:49:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T04:03:52.000Z (almost 10 years ago)
- Last Synced: 2024-09-29T12:40:56.385Z (about 2 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)