visionmedia/express-expose — pull request #27 by jonpacker (2012-08-14 17:04:58+00:00)
Title: Fix Request-Level exposure.

`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.