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

express-handlebars

0.0.2 • Public • Published

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.