Skip to content
Myr

Added support for absolute view paths

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 e6f4b04 · Browse files · 1 file+3 added−1 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−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:lib/express/view.js+3 added-1 removed
246 unmodified lines
247 root += '/partials';248 }249250 // View path251 var path = root + '/' + view;251 var path = view[0] === '/'252 ? view253 : root + '/' + view;254255 // Pass filename to the engine and view256 options.locals = options.locals || {};257 options.locals.__filename = options.filename = path;
57 unmodified lines