From 58960ed562bfaff167c5a4902440f140942df6d0 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 12 Sep 2019 20:01:53 -0400 Subject: [PATCH] Change function call to isJsFile as well --- bin/mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mustache b/bin/mustache index 735e4f8..2b2250a 100755 --- a/bin/mustache +++ b/bin/mustache @@ -54,7 +54,7 @@ function run (/*args*/) { function readView (cb) { var view; - if (isJson(viewArg)) { + if (isJsFile(viewArg)) { view = require(path.join(process.cwd(),viewArg)); cb(view); } else {