summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/handlebars4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/handlebars b/bin/handlebars
index 0e0cbc2..247ddd5 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);
}