Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

underscore as a rendering engine for express.js. derivative work based off of uinexpress (https://github.com/haraldrudell/uinexpress)

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

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
Something went wrong with that request. Please try again.