lodashinexpress

0.1.3 • Public • Published

lodashinexpress

Enables lodash templates in express versions 2 and 3.

Derivative work based off of uinexpress library that enables using underscore as a rendering engine for express.js

Usage

in your express app.js, for express 3:

app.configure(function () {
  app.engine('html', require('lodashinexpress').__express)
  app.set('view engine', 'html')
});

in your express app.js, for express 2:

app.configure(function () {
  app.register('html', require('lodashinexpress'))
  app.set('view engine', 'html')
});

Notes

  • An alternative is to use ejs in the browser, see the module ejsinbrowser
  • Original project used as a reference: uinexpress

Readme

Keywords

none

Package Sidebar

Install

npm i lodashinexpress

Weekly Downloads

2

Version

0.1.3

License

none

Last publish

Collaborators

  • zappan