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

Request-level exposure not working. #26

Closed
jonpacker opened this issue Aug 14, 2012 · 0 comments
Closed

Request-level exposure not working. #26

jonpacker opened this issue Aug 14, 2012 · 0 comments

Comments

@jonpacker
Copy link
Contributor

Couldn't see an existing issue for this, apart from the pull request with the test.

app.get('/', function(req, res) {
  res.expose('var something = true;');
  res.render('index');
});

The JS string printed in the template omits the stuff added at the request level. Using express 3 & expose 0.3.2.

@tj tj closed this as completed in 581590f Aug 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants