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. So, insteadof returning the function, make this.render just a generator function can solve the problem.