hbsc

Handlebars precompiler

hbsc

Handlebars template precompiler for express.

Designed to compile handlebars templates each time express server is started.

var hbsc = require('hbsc');
hbsc.compile({
  dir: __dirname + '/templates',
  outfile: __dirname + '/public/js/templates.js',
  extensions: ['hbs', 'handlebars']
});

On the browser side, you should deploy the Handlebars runtime-only release. Compiled templates will be named and stored in the Handlebars object according to their file paths, e.g. Handlebars.templates['todos/show']

Based off of https://github.com/jwietelmann/node-handlebars-precompiler