Skip to content
Myr

Add full extname support to the "view engine" setting; e.g., ".jade".

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

This allows View to support a `defaultEngine` (a.k.a. an app's "view engine" setting) which contains a ".", for example: ``` app.engine('.jade', jadeEngine); app.set('view engine', '.jade'); ``` This brings View's handling of template filename extensions to parity with `app.engine()`. This allows an app's "view engine" setting to be a full extension name, including the ".".

authored by Eric Ferraiuolo · committed by Eric Ferraiuolo · parent 480d006 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/view.js+1 added-1 removed