0.0.4 • Published 9 years ago
cloak.view.handlebars v0.0.4
cloak.view.handlebars
Handlebars templating engine for cloak.view
Usage
$ npm install --save cloak.view.handlebars
var config = require('cloak.core/config');
var handlebars = require('cloak.view.handlebars');
// Set the handlebars compiler as the default templating engine
config.module('view').set('templatingEngine', handlebars);
// OR, for pre-compiled templates, use the runtime
var templates = require('./my-precompiled-templates');
config.module('view').set('templatingEngine', handlebars.runtime(templates));