diff --git a/bin/mustache b/bin/mustache index 583ed1e..be9f734 100755 --- a/bin/mustache +++ b/bin/mustache @@ -131,7 +131,7 @@ function isStdin (view) { } function isJson (view) { - return path.parse(view).ext === '.js'; + return path.extname(view) === '.js'; } function wasNotFound (err) {