Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-ejs-layouts

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-ejs-layouts - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

2

lib/express-layouts.js

@@ -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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc