async testViewRender() { const { ctx } = this; this.app.logger.info(this.app.view.get('nunjucks')); this.app.logger.info(this.app.config.view.root); this.app.logger.info(this.app.config.view.defaultExtension); ctx.body = await this.ctx.view.render('test.tpl', { test: '123', }); }
async testViewRenderString() { this.ctx.body = await this.ctx.view.renderString('test'); }