From f8edc59025076b42a4bf8bccc31a9eff6a1d9b39 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Sat, 30 Jul 2011 16:20:26 -0500 Subject: [PATCH] Update the bin to use the precompile API --- bin/handlebars | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/handlebars b/bin/handlebars index 8ac93726..0694d767 100755 --- a/bin/handlebars +++ b/bin/handlebars @@ -21,7 +21,5 @@ fs.readFile(template, 'utf8', function(err, data) { } var options = {}; - var ast = handlebars.parse(data); - var environment = new handlebars.Compiler().compile(ast, options); - console.log(new handlebars.JavaScriptCompiler().compile(environment, options)); + console.log(handlebars.precompile(data, options)); });