templates
Advanced tools
Comparing version 1.2.4 to 1.2.5
'use strict'; | ||
var debug = require('debug')('base:templates:helper'); | ||
var extend = require('extend-shallow'); | ||
var List = require('../list'); | ||
@@ -6,0 +5,0 @@ |
@@ -357,5 +357,5 @@ 'use strict'; | ||
for (var i = 0; i < items.length; i++) { | ||
list.deleteItem(items[i]); | ||
this.deleteItem(items[i]); | ||
} | ||
return list.items; | ||
return this.items; | ||
}; | ||
@@ -362,0 +362,0 @@ |
@@ -207,2 +207,13 @@ 'use strict'; | ||
if (engine.Handlebars) { | ||
for (var key in engine.Handlebars.helpers) { | ||
if (engine.Handlebars.helpers.hasOwnProperty(key)) { | ||
var val = engine.Handlebars.helpers[key]; | ||
if (!app.hasHelper(key) && !app.hasAsyncHelper(key)) { | ||
app.helper(key, val); | ||
} | ||
} | ||
} | ||
} | ||
if (typeof engine === 'undefined') { | ||
@@ -209,0 +220,0 @@ cb(app.formatError('compile', 'engine', formatExtError(file, ext))); |
{ | ||
"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": "1.2.4", | ||
"version": "1.2.5", | ||
"homepage": "https://github.com/jonschlinkert/templates", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
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
176583
3420