Merge pull request #657 from chrishoage/master

Fixes issue where cli compiles non handlebars templates
This commit is contained in:
Kevin Decker
2013-11-20 09:32:48 -08:00
+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);
}