diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index ce9bea5..7833a8e 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -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) |