templates
Advanced tools
Comparing version 0.20.1 to 0.20.2
12
index.js
@@ -347,8 +347,10 @@ /*! | ||
if (!utils.isPartial(view) && typeof view.layout === 'undefined') { | ||
var views = this[view.options.collection]; | ||
var layout = views.resolveLayout(view); | ||
if (typeof layout === 'undefined') { | ||
layout = this.option('layout'); | ||
if (view.options && view.options.collection) { | ||
var views = this[view.options.collection]; | ||
var layout = views.resolveLayout(view); | ||
if (typeof layout === 'undefined') { | ||
layout = this.option('layout'); | ||
} | ||
return layout; | ||
} | ||
return layout; | ||
} | ||
@@ -355,0 +357,0 @@ return view.layout; |
{ | ||
"name": "templates", | ||
"description": "System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"homepage": "https://github.com/jonschlinkert/templates", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -210,3 +210,3 @@ # templates [![NPM version](https://img.shields.io/npm/v/templates.svg?style=flat)](https://www.npmjs.com/package/templates) [![NPM downloads](https://img.shields.io/npm/dm/templates.svg?style=flat)](https://npmjs.org/package/templates) [![Build Status](https://img.shields.io/travis/jonschlinkert/templates.svg?style=flat)](https://travis-ci.org/jonschlinkert/templates) | ||
### [.setup](index.js#L374) | ||
### [.setup](index.js#L376) | ||
@@ -470,3 +470,3 @@ Expose static `setup` method for providing access to an instance before any other code is run. | ||
### [.compile](lib/view.js#L87) | ||
### [.compile](lib/view.js#L89) | ||
@@ -489,3 +489,3 @@ Synchronously compile a view. | ||
### [.render](lib/view.js#L105) | ||
### [.render](lib/view.js#L107) | ||
@@ -507,3 +507,3 @@ Asynchronously render a view. | ||
### [.isType](lib/view.js#L140) | ||
### [.isType](lib/view.js#L142) | ||
@@ -2035,6 +2035,6 @@ Return true if the view is the given view `type`. Since types are assigned by collections, views that are "collection-less" will not have a type, and thus will always return `false` (as expected). | ||
* [assemble](https://www.npmjs.com/package/assemble): Assemble is a powerful, extendable and easy to use static site generator for node.js. Used… [more](https://www.npmjs.com/package/assemble) | [homepage](https://github.com/assemble/assemble) | ||
* [en-route](https://www.npmjs.com/package/en-route): Routing for static site generators, build systems and task runners, heavily based on express.js routes… [more](https://www.npmjs.com/package/en-route) | [homepage](https://github.com/jonschlinkert/en-route) | ||
* [engine](https://www.npmjs.com/package/engine): Template engine based on Lo-Dash template, but adds features like the ability to register helpers… [more](https://www.npmjs.com/package/engine) | [homepage](https://github.com/jonschlinkert/engine) | ||
* [layouts](https://www.npmjs.com/package/layouts): Wraps templates with layouts. Layouts can use other layouts and be nested to any depth.… [more](https://www.npmjs.com/package/layouts) | [homepage](https://github.com/doowb/layouts) | ||
* [assemble](https://www.npmjs.com/package/assemble): Assemble is a powerful, extendable and easy to use static site generator for node.js. Used… [more](https://www.npmjs.com/package/assemble) | [homepage](https://github.com/assemble/assemble) | ||
* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://www.npmjs.com/package/verb) | [homepage](https://github.com/verbose/verb) | ||
@@ -2082,2 +2082,2 @@ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 26, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 27, 2016._ |
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
178980
4152