hbsc

0.0.4 • Public • Published

hbsc

Handlebars template precompiler for express.

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

Usage

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']

Hat Tip

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i hbsc

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • cl-bender