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 c275d27 · 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
333 unmodified lines
334res._render = function(view, opts, fn, parent, sub){335 var options = {}336 , self = this337 , app = this.app338 , helpers = app._locals338 , locals = app._locals339 , dynamic = app._dynamicLocals340 , viewOptions = app.set('view options')341 , root = app.set('views') || process.cwd() + '/views';342
59 unmodified lines
402 // apply403 merge(options, this.__dynamic);404 }405406 // Merge view helpers407 union(options, helpers);406 // Merge view locals407 union(options, locals);408409 // Always expose partial() as a local410 options.partial = function(path, opts){411 return renderPartial(self, path, opts, options, view);
48 unmodified lines