queckezz/koa-views

a proposal

fhyoga opened this issue · 4 comments

It is recommended to add a configuration item and mount the path of the template file to ctx.

This can support some hacks in the development environment, such as reading the template file compiled by webpack in memory.

I think this is a very common requirement in development. What do you think, if I can mention a PR?

Cloud you give an example to explain it? I don't understand the relation between the template file compiled and path of the template file.

I did not think clearly, I have found another way to solve the problem.

ckrad commented

hello my template file is in memory how can i read it?

@ckrad If you are using webpack packaged, you can look at the API of this package.