Comparing version 0.10.1 to 0.10.2
13
index.js
@@ -1876,3 +1876,2 @@ /*! | ||
var cloned = cloneDeep(template); | ||
var content = template.fn; | ||
@@ -1891,7 +1890,7 @@ | ||
if (typeof cb !== 'function') { | ||
cloned.content = this.renderBase(engine, content, locals, cb); | ||
template.content = this.renderBase(engine, content, locals, cb); | ||
// handle post-render middleware routes | ||
this.handle('postRender', cloned, handleError(template, 'postRender')); | ||
return cloned.content; | ||
this.handle('postRender', template, handleError(template, 'postRender')); | ||
return template.content; | ||
} | ||
@@ -1906,5 +1905,5 @@ | ||
if (err) return cb.call(self, err); | ||
cloned.content = content; | ||
self.handle('postRender', cloned, handleError(template, 'postRender')); | ||
return cb.call(self, null, cloned.content); | ||
template.content = content; | ||
self.handle('postRender', template, handleError(template, 'postRender')); | ||
return cb.call(self, null, template.content); | ||
}); | ||
@@ -1911,0 +1910,0 @@ }; |
{ | ||
"name": "template", | ||
"description": "Render templates from any engine. Make custom template types, use layouts on pages, partials or any custom template type, custom delimiters, helpers, middleware, routes, loaders, and lots more. Powers Assemble v0.6.0, Verb v0.3.0 and your application.", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"homepage": "https://github.com/jonschlinkert/template", | ||
@@ -6,0 +6,0 @@ "author": { |
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
82381
2260