Fix Request-Level exposure. #27

merged 3 commits into from Aug 14, 2012


None yet

2 participants


locals was only being called on the request level if something on the same namespace had not been previously exposed globally - and even then, it was being called before the value itself had been saved. I moved the locals call to after the values have been transformed/saved, and made sure it is called every time for request-level calls to expose.

The only way around this would be to delay calling locals until right before the template is rendered. I couldn't see any obvious way of doing that.

@tj tj merged commit 1b24427 into expressjs:master Aug 14, 2012
tj commented Aug 14, 2012


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