0.0.2 • Published 5 years ago

fast-handlebars-compiler v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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