templates
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -163,3 +163,3 @@ 'use strict'; | ||
function decorate(obj) { | ||
utils.define(obj, 'merge', function(val) { | ||
utils.define(obj, 'merge', function() { | ||
var args = [].concat.apply([], [].slice.call(arguments)); | ||
@@ -166,0 +166,0 @@ var len = args.length; |
@@ -93,6 +93,10 @@ 'use strict'; | ||
cb = this.handleError(method, view, cb); | ||
if (view.options.handled.indexOf(method) === -1) { | ||
this.handle(method, view, cb); | ||
return this.handle(method, view, cb); | ||
} | ||
if (typeof cb === 'function') { | ||
return cb(null, view); | ||
} | ||
return view; | ||
}; | ||
@@ -99,0 +103,0 @@ |
{ | ||
"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.14.3", | ||
"version": "0.14.4", | ||
"homepage": "https://github.com/jonschlinkert/templates", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -164,3 +164,3 @@ # templates [![NPM version](https://img.shields.io/npm/v/templates.svg)](https://www.npmjs.com/package/templates) [![Build Status](https://img.shields.io/travis/jonschlinkert/templates.svg)](https://travis-ci.org/jonschlinkert/templates) | ||
### [.list](index.js#L161) | ||
### [.list](index.js#L174) | ||
@@ -185,3 +185,3 @@ Create a new list. See the [list docs](docs/lists.md) for more information about lists. | ||
### [.collection](index.js#L200) | ||
### [.collection](index.js#L213) | ||
@@ -198,3 +198,3 @@ Create a new collection. Collections are decorated with special methods for getting and setting items from the collection. Note that, unlike the [create](#create) method, collections created with `.collection()` are not cached. | ||
### [.create](index.js#L252) | ||
### [.create](index.js#L265) | ||
@@ -657,3 +657,3 @@ Create a new view collection to be stored on the `app.views` object. See | ||
### [.setView](lib/views.js#L112) | ||
### [.setView](lib/views.js#L134) | ||
@@ -674,3 +674,3 @@ Set a view on the collection. This is identical to [addView](#addView) except `setView` does not emit an event for each view. | ||
### [.addView](lib/views.js#L158) | ||
### [.addView](lib/views.js#L180) | ||
@@ -692,3 +692,3 @@ Similar to [setView](#setView), adds a view to the collection but also fires an event and iterates over the loading `queue` for loading views from the `addView` event listener. If the given view is not already an instance of `View`, it will be converted to one before being added to the `views` object. | ||
### [.deleteView](lib/views.js#L181) | ||
### [.deleteView](lib/views.js#L203) | ||
@@ -708,3 +708,3 @@ Delete a view from collection `views`. | ||
### [.addViews](lib/views.js#L205) | ||
### [.addViews](lib/views.js#L227) | ||
@@ -728,3 +728,3 @@ Load multiple views onto the collection. | ||
### [.addList](lib/views.js#L239) | ||
### [.addList](lib/views.js#L261) | ||
@@ -748,3 +748,3 @@ Load an array of views onto the collection. | ||
### [.getView](lib/views.js#L272) | ||
### [.getView](lib/views.js#L294) | ||
@@ -765,3 +765,3 @@ Get view `name` from `collection.views`. | ||
### [.extendView](lib/views.js#L307) | ||
### [.extendView](lib/views.js#L329) | ||
@@ -781,3 +781,3 @@ Load a view from the file system. | ||
### [.isType](lib/views.js#L322) | ||
### [.isType](lib/views.js#L344) | ||
@@ -784,0 +784,0 @@ Return true if the collection belongs to the given view `type`. |
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
163227
3948