Skip to content

Allows handlebars templates to be precompiled into a single javascript file when express runs.

Notifications You must be signed in to change notification settings

js62789/hbs-precompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hbs-precompiler

The hbs-precompiler manages handlebars templates for web sites that serve pages via ExpressJS. Hbs-precompiler precompiles handlebars templates into a single javascript file when express runs and continues to watch the template files for changes. When a template is changed, the templates are re-pre-compiled.

var Precompiler = require('hbs-precompiler');

var hbsPrecompiler = new Precompiler({
  in: '/path/with/templates',
  out: '/path/to/output.js',
  minify: true,
  watch: true
});

About

Allows handlebars templates to be precompiled into a single javascript file when express runs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published