【发布时间】:2020-06-30 21:54:44
【问题描述】:
我有 2 个 hbs 文件,即:test.template.de.hbs 和 test.template.en.hbs
@Get('/test/:locale')
@Render(`/templates/test.template.${@Param() locale}.hbs`)
root(): any {
return { test: 1 };
}
我想根据我在参数中提供的内容来渲染文件,但我不确定如何保存它以及是否可以完成。
【问题讨论】:
标签: javascript typescript nestjs