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 {