blob: e5349a15488485fcd68426149a23798c9f56cea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require('./common');
global.Handlebars = require('../../zomg/lib/handlebars');
global.CompilerContext = {
compile: function(template, options) {
var templateSpec = Handlebars.precompile(template, options);
console.log(templateSpec);
return Handlebars.template(eval('(' + templateSpec + ')'));
},
compileWithPartial: function(template, options) {
return Handlebars.compile(template, options);
}
};
|