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.