Skip to content
Myr

utilizing app.set()

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 530328a · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/view.js+2 added-2 removed
174 unmodified lines
175 if (opts) merge(options, opts);176177 // Defaults178 var self = this179 , root = app.settings.views || process.cwd() + '/views'179 , root = app.set('views') || process.cwd() + '/views'180 , partial = options.renderPartial181 , layout = options.layout;182183 // Layout support
10 unmodified lines
194 // "views" setting195 options.root = root;196197 // "view engine" setting198 options.defaultEngine = app.settings['view engine'];198 options.defaultEngine = app.set('view engine');199200 // Populate view201 // TODO: cache202 var orig = view = partial
76 unmodified lines