Browse Source

Change function call to isJsFile as well

pull/717/head
Justin GitHub 6 years ago
parent
commit
58960ed562
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mustache

+ 1
- 1
bin/mustache View File

@@ -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 {


Loading…
Cancel
Save