Skip to content
Myr

misc refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f19b312 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:lib/view.js+3 added-3 removed
332 unmodified lines
333res._render = function(view, opts, fn, parent, sub){334 var options = {}335 , self = this336 , app = this.app337 , helpers = app._locals337 , locals = app._locals338 , dynamic = app._dynamicLocals339 , viewOptions = app.set('view options')340 , root = app.set('views') || process.cwd() + '/views';341
59 unmodified lines
401 // apply402 merge(options, this.__dynamic);403 }404405 // Merge view helpers406 union(options, helpers);405 // Merge view locals406 union(options, locals);407408 // Always expose partial() as a local409 options.partial = function(path, opts){410 return renderPartial(self, path, opts, options, view);
49 unmodified lines