fast-handlebars-compiler

v0.0.2
Fast handlebar (node.js) compiler
handlebars chokidar compiler templating

Fast Handlebars Compiler

Compiling Handlebars templates in a fast way.

Example configuration

const fhc = require('fast-handlebars-compiler');

fhc.build({
    entry: path.join(process.cwd(), "src", "layouts", "default.hbs"),
    output: path.join(process.cwd(), "dist", "index.html"),
    data: {
      title: 'Index',
      properties: {
        pagecontent: 'index'
      }
    }
});

watch files with nodemon

nodemon --watch src/**/*.hbs --exec fastHandlebars

npm i fast-handlebars-compiler

Metadata

  • MIT
  • Whatever
  • jefsnare
  • released 2/6/2019

Downloads

Maintainers