publicclass/express-partials — pull request #26 by ecdeveloper (2012-10-24 19:56:21+00:00)
Title: Fix `locals` within sub-partials issue

This fix is actually similar with the [#22](https://github.com/publicclass/express-partials/issues/22) issue.
I am setting the locals like this:

app.configure(function() {
...
app.use(function(req, res, next){
res.locals.logged_user = req.user;
res.locals.config = config;
next();
})
...
})

In regular views I can access the locals objects. But If I try to acess, let's say, `logged_user` object inside a partial which is included into another partial - I get an error.

So this commit fixes the issue.