Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

express-js-views

1.0.0 • Public • Published

express-js-views

Use JavaScript functions as view templates for Express

Build Status npm version

Installation

$ npm install --save express-js-views

Usage

Use it in your Express application as the view engine for JavaScript files:

app.engine("js", require("express-js-views"));
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'js');
app.set("view cache", false);

See the example app for more.

Keywords

none

Install

npm i express-js-views

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar