express-ejs-layouts
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -92,2 +92,7 @@ /*jslint sloppy:true indent:2 plusplus:true regexp:true*/ | ||
if (typeof locals.body !== 'string') { | ||
res.__render.call(self, view, locals, fn); | ||
return; | ||
} | ||
if (options.extractScripts === true || (options.extractScripts === undefined && app.get('layout extractScripts') === true)) { | ||
@@ -94,0 +99,0 @@ locals.script = ''; |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"main": "lib/express-layouts.js", | ||
@@ -13,0 +13,0 @@ "dependencies": {}, |
@@ -5,2 +5,3 @@ # express-ejs-layouts | ||
[![npm version](https://badge.fury.io/js/express-ejs-layouts.svg)](https://badge.fury.io/js/express-ejs-layouts) | ||
[![build status](https://secure.travis-ci.org/Soarez/express-ejs-layouts.svg)](http://travis-ci.org/Soarez/express-ejs-layouts) | ||
@@ -7,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
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
11433
115
258
8