handlebars-bundle

2.3.2 • Public • Published

handlebars-bundle

json generator

USE

var HandlebarsBundle = require('handlebars-bundle');
HandlebarsBundle(options);
 

OPTIONS

* {string} src - source path
* {string} root - root path
* {string} output - output file path
* {boolean} watch - watching changes
* {boolean} ignore_errors - ignore errors

Change default settings

HandlebarsBundle.EXT = '.hbs';
HandlebarsBundle.BUNDLE_EXT = '.bundle.json';
HandlebarsBundle.timeRebuild = '600';

OUTPUT JSON

{"template":{"name":"path/path","content":"html content","mtime":1476356647000},"partials":{}}

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i handlebars-bundle

    Weekly Downloads

    15

    Version

    2.3.2

    License

    ISC

    Last publish

    Collaborators

    • whooooop