express-ejs-layouts
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -11,3 +11,3 @@ /*jslint sloppy:true indent:2 plusplus:true regexp:true*/ | ||
var name, i = 1, str = locals.body, | ||
regex = new RegExp('\n?' + contentPattern + '.+?' + contentPattern + '\n?', 'g'), | ||
regex = new RegExp('\r?\n?' + contentPattern + '.+?' + contentPattern + '\r?\n?', 'g'), | ||
split = str.split(regex), | ||
@@ -14,0 +14,0 @@ matches = str.match(regex); |
@@ -10,11 +10,10 @@ { | ||
], | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"main": "lib/express-layouts.js", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"ejs": "^2.6.1", | ||
"express": "*", | ||
"supertest": "*", | ||
"ejs": "^2.6.1", | ||
"mocha": "*", | ||
"should": "*" | ||
"should": "*", | ||
"supertest": "*" | ||
}, | ||
@@ -21,0 +20,0 @@ "optionalDependencies": {}, |
@@ -6,3 +6,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) | ||
[![build status](https://secure.travis-ci.org/soarez/express-ejs-layouts.svg)](http://travis-ci.org/Soarez/express-ejs-layouts) | ||
@@ -19,3 +19,3 @@ ## Installation | ||
1. `git clone git@github.com:Soarez/express-ejs-layouts.git` | ||
1. `git clone https://github.com/soarez/express-ejs-layouts.git` | ||
2. `cd express-ejs-layouts` | ||
@@ -216,2 +216,11 @@ 3. `npm install` | ||
res.render('the-view', { layout: 'specific-layout' }); | ||
}); | ||
``` | ||
### Set no layout for single render | ||
Just pass `layout: false` as render locals object. | ||
``` | ||
app.get('/', function(req, res) { | ||
res.render('the-view', { layout: false }); | ||
); | ||
@@ -218,0 +227,0 @@ ``` |
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
11606
267