14 lines
385 B
JavaScript
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);
|
|
}
|
|
};
|