Temporary Handlebars.compile implementation in compiler
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user