mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
removed old dynamic helper logic from the view system
This commit is contained in:
parent
d689656775
commit
986916cf3e
17
lib/view.js
17
lib/view.js
|
|
@ -382,23 +382,6 @@ res._render = function(view, opts, fn, parent, sub){
|
|||
// charset option
|
||||
if (options.charset) this.charset = options.charset;
|
||||
|
||||
// Dynamic helper support
|
||||
if (false !== options.dynamic) {
|
||||
// cache
|
||||
if (!this.__dynamic) {
|
||||
this.__dynamic = {};
|
||||
for (var key in dynamic) {
|
||||
this.__dynamic[key] = dynamic[key].call(
|
||||
this.app
|
||||
, this.req
|
||||
, this);
|
||||
}
|
||||
}
|
||||
|
||||
// apply
|
||||
merge(options, this.__dynamic);
|
||||
}
|
||||
|
||||
// Merge view locals
|
||||
union(options, locals);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user