broccoli-baked-handlebars
v0.1.1
Published
A Broccoli transform for compilng Handlebars templates to HTML.
Downloads
3
Readme
A Broccoli transform for compilng Handlebars templates to HTML.
Example usage:
var pickFiles = require('broccoli-static-compiler');
var bakedHBSFilter = require('broccoli-baked-handlebars');
var env = require('broccoli-env').getEnv();
var IS_PRODUCTION_ENV = env === 'production';
var index = pickFiles('public/', {
srcDir: '/',
files: ['index.hbs'],
destDir: '/'
});
var context = {
production: IS_PRODUCTION_ENV
};
index = bakedHBSFilter(index, context);