Browse Source

Can not use path.parse in version node 0.10

pull/717/head
Justin Staubach 6 years ago
parent
commit
51bd7fd494
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mustache

+ 1
- 1
bin/mustache View File

@@ -131,7 +131,7 @@ function isStdin (view) {
}

function isJson (view) {
return path.parse(view).ext === '.js';
return path.extname(view) === '.js';
}

function wasNotFound (err) {


Loading…
Cancel
Save