From d3cff5c1cd614b58680d9d4adfe0aca74272aae4 Mon Sep 17 00:00:00 2001 From: choage Date: Sun, 17 Nov 2013 16:35:01 -0800 Subject: [PATCH] Fixes issue where cli compiles non handlebars templates --- bin/handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/handlebars b/bin/handlebars index 0e0cbc27..247ddd54 100755 --- a/bin/handlebars +++ b/bin/handlebars @@ -150,9 +150,9 @@ function processTemplate(template, root) { processTemplate(path, root || template); } }); - } else { + } else if (extension.test(path)) { var data = fs.readFileSync(path, 'utf8'); - + if (argv.bom && data.indexOf('\uFEFF') === 0) { data = data.substring(1); }