Handlebars integration for express
JavaScript
Switch branches/tags
Nothing to show
Latest commit f899be4 Sep 7, 2012 @jneen jneen v0.0.2
Permalink
Failed to load latest commit information.
lib use app.engine in more recent versions of express Sep 7, 2012
.gitignore ignore the node_modules dir Mar 25, 2012
LICENSE initial import Mar 25, 2012
README.md README Mar 25, 2012
index.js initial import Mar 25, 2012
package.json v0.0.2 Sep 7, 2012

README.md

express-handlebars

Usage

var app = require('express').createServer()
  , Handlebars = require('handlebars')
;

require('express-handlebars')(app, Handlebars);

Why

This package hooks into express.helpers and express.dynamicHelpers, and ensures that Handlebars.registerHelper is called properly, so that custom block helpers can be defined in the usual express-ive way.