Temporary Handlebars.compile implementation in compiler

This commit is contained in:
kpdecker
2011-07-30 15:24:49 -05:00
parent 600a669d12
commit 82a1b0e85c
+6
View File
@@ -679,5 +679,11 @@ Handlebars.precompile = function(string, options) {
return new Handlebars.JavaScriptCompiler().compile(environment, options);
};
// TODO : Testing
// TODO : Do this without the eval requirement
Handlebars.compile = function(string, options) {
return Handlebars.template(eval('(' + Handlebars.precompile(string, options) + ')'));
};
// END(BROWSER)