Fixes issue where cli compiles non handlebars templates

This commit is contained in:
choage
2013-11-17 16:35:01 -08:00
parent 47d13cb23c
commit d3cff5c1cd
+2 -2
View File
@@ -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);
}