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