queckezz/koa-views — pull request #16 by clintwood (2014-05-06 15:30:28+00:00)
Title: Honor upstream middlewares that may have already set this.locals

Because `Koajs` creates a new context (`this`) on each request, we can safely allow upstream middlewares to create and populate a `this.locals` object to be used in `koa-views`.

Currently, `koa-views` kills and replaces any upstream `this.locals`.