queckezz/koa-views — pull request #21 by Jeremial (2014-06-26 16:11:45+00:00)
Title: update this.render to generator function

in some situation, when Anonymous generator function are returned, the `this` in the function are refered to `global` insteadof the koa ctx.
Thus the `this.body=` will set `global.body`, and this.body will be undefined in follow middlewares.
So, insteadof returning the function, make this.render just a generator function can solve the problem.