recently, when using the template engine under eggjs, you need to use the ctx.renderView method to return the content in the template, but it is found that the returned content will have blank lines and spaces, because there is a site after the template language has been replaced. Look up the nunjucks document
and find
can actually be set, and I have tested some of them according to nunjucks alone. But I don"t know how to set these parameters in eggjs
look forward to God"s guidance