Comparing version 1.2.10 to 1.2.11
@@ -48,3 +48,3 @@ "use strict"; | ||
this.compiled = "var include = function (request, customLocals) {\n" + " __ajs.inc(request, customLocals, __locals)\n" + " }" + " , render = __ajs.ren\n" + " , print = __ajs.out;\n" + "with(__locals) {\n" + "try {\n" + this._make(this.tree) + ";\n" + this._endFunc + "();\n" + "} catch(e) { \n" + "console.log(e.stack);" + this._errFunc + "(e, typeof __filename !== 'undefined' ? __filename : 'missing filename') }\n" + "}"; | ||
this.compiled = "var include = function (request, customLocals) {\n" + " __ajs.inc(request, customLocals, __locals)\n" + " }" + " , render = __ajs.ren\n" + " , print = __ajs.out;\n" + "with(__locals) {\n" + "try {\n" + this._make(this.tree) + ";\n" + this._endFunc + "();\n" + "} catch(e) { " + this._errFunc + "(e, __filename) }\n" + "}"; | ||
@@ -51,0 +51,0 @@ var fn = new Function('__ajs, __locals', this.compiled); |
@@ -45,3 +45,3 @@ "use strict"; | ||
res.render = function (filename, locals, opts) { | ||
filename = normalizeFilename(path.resolve(templateDir, filename)); | ||
filename = normalizeFilename(path.join(templateDir, filename)); | ||
@@ -48,0 +48,0 @@ ajs._load(filename, opts, function (err, template) { |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)", | ||
@@ -17,0 +17,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103685