Skip to content
Myr

Make res.render callback is always async, even for sync view engines

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

closes #2668

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 694869d · Browse files · 2 files+25 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

2 files+25 added−1 removed

  • other:+25 added−1 removed

2 files+25 added−1 removed

modified:lib/view.js+24 added-1 removed
modified:History.md+1 added
5 unmodified lines
6 * remove:7 - `app.param(fn)`8 - `req.param()` -- use `req.params`, `req.body`, or `req.query` instead9 * change:10 - `res.render` callback is always async, even for sync view engines11 - The leading `:` character in `name` for `app.param(name, fn)` is no longer removed12 - Use `router` module for routing13 - Use `path-is-absolute` module for absolute path detection14
3013 unmodified lines