Added `req.route`, exposing the current route. Closes #11
Before adoption: this commit came in with the history the project adopted, so no landing records it.
this can be used with a dynamicHelper to expose the _last_ route that was matched, aka the end-point when rendering a template. this is a `Route` instance, so it has .path, .regexp, etc.
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1393187 · Browse files · 2 files+23 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+23 added−1 removed
- tests:+22 added−0 removed
- other:+1 added−1 removed