Phase 2 of precompiled extraction:
Use string representations to pass around the function context
This commit is contained in:
@@ -69,7 +69,8 @@ Handlebars.VM = {
|
||||
compile: function(string, options) {
|
||||
var ast = Handlebars.parse(string);
|
||||
var environment = new Handlebars.Compiler().compile(ast, options);
|
||||
var logic = new Handlebars.JavaScriptCompiler().compile(environment, options);
|
||||
// Yes this is evil. Work in progress for the best way to handle runtime comp vs. cached comp.
|
||||
var logic = eval('(' + new Handlebars.JavaScriptCompiler().compile(environment, options) + ')');
|
||||
return Handlebars.VM.generateContainer(logic);
|
||||
},
|
||||
invokePartial: function(partial, name, context, helpers, partials) {
|
||||
|
||||
Reference in New Issue
Block a user