Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

req and res available in views #113

Closed
dcbartlett opened this issue Feb 9, 2013 · 1 comment
Closed

req and res available in views #113

dcbartlett opened this issue Feb 9, 2013 · 1 comment
Assignees

Comments

@dcbartlett
Copy link
Contributor

It would be nice to be able to parse/use req and res in the views.

For example:
if someone wanted to show the path that was requested. the could just type the following in the view.

<%- req.route %>

Instead of passing the variable through the controller, it would be much easier if it was already available in the views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants