Comparing version 0.0.17 to 0.0.18
@@ -135,3 +135,3 @@ const RazorError = require('./RazorError'); | ||
partialViewNotFound(partialView, searchedLocations) { | ||
let message = `The view "${this.info.filename}" cannot find the partial view "${partialView}".\nThe following locations were searched:\n${searchedLocations.join("\n")}.`; | ||
let message = `The view "${this.info.filename}" cannot find the partial view "${partialView}".\nThe following locations were searched:\n${searchedLocations.join("\n")}`; | ||
return RazorError.new({ message, info: this.info, capture: this.partialViewNotFound }); | ||
@@ -138,0 +138,0 @@ } |
@@ -223,3 +223,3 @@ require('./utils'); | ||
addFileNameIfDev(data, filename) { | ||
if (this.env === 'dev') | ||
if (this.env === 'development') | ||
return this.wrapInHtmlComment(filename) + _eol_ + data.toString(); | ||
@@ -226,0 +226,0 @@ |
{ | ||
"name": "raz", | ||
"description": "Razor-like syntax for templating views in Express framework by mixing HTML with JavaScript.", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sergey", |
152535