Files
handlebars.js/spec/env/node.js
T
2013-10-09 03:22:05 -07:00

14 lines
385 B
JavaScript

require('./common');
global.Handlebars = require('../../lib');
global.CompilerContext = {
compile: function(template, options) {
var templateSpec = handlebarsEnv.precompile(template, options);
return handlebarsEnv.template(eval('(' + templateSpec + ')'));
},
compileWithPartial: function(template, options) {
return handlebarsEnv.compile(template, options);
}
};