Skip to content
Myr

Fixed .filename view engine option [reported by drudge]

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

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:lib/view.js+3 added
283 unmodified lines
284 options.partial = function(path, opts){285 return renderPartial(self, path, opts, options, view);286 };287288 // Provide filename to engine289 options.filename = view.path;290291 function error(err) {292 if (fn) {293 fn(err);294 } else {
47 unmodified lines