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

express-partials

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-partials - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

test/fixtures/default-layout/app.js

6

History.md
0.2.0 / 2014-01-18
==================
* Add option to specify global default layout path
* Added a link to express 2.x ejs example. Closes #39.
0.1.1 / 2013-03-21

@@ -3,0 +9,0 @@ ==================

7

index.js

@@ -49,4 +49,7 @@ var path = require('path')

// default layout
if( layout === true || layout === undefined )
layout = 'layout';
if( layout === true || layout === undefined ) {
// Try to find default layout in view options, if not found, seek for 'layout'
var viewOptions = res.app.get('view options');
layout = viewOptions && viewOptions.defaultLayout || 'layout';
}

@@ -53,0 +56,0 @@ // layout

@@ -5,3 +5,3 @@ {

"description": "Express 3.x Layout & Partial support.",
"version": "0.1.1",
"version": "0.2.0",
"repository": {

@@ -8,0 +8,0 @@ "url": "https://github.com/publicclass/express-partials"

@@ -55,2 +55,4 @@ [![build status](https://secure.travis-ci.org/publicclass/express-partials.png)](http://travis-ci.org/publicclass/express-partials)

For an example on how to use partials in the first place I'd recommend you checking out the [Express 2.x ejs example](https://github.com/visionmedia/express/tree/2.x/examples/ejs).
## Template Support

@@ -100,2 +102,2 @@

TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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