【发布时间】:2016-09-16 01:38:36
【问题描述】:
react-templates 是一个很好的分离模板和逻辑代码的解决方案,但是,如果我有多个模板但引用一个逻辑代码,比如 i18n 请求。 例如。
post.js //which is the logic code
post.en.rt //which is the template for english
post.es.rt //for spanish
如何在 post.js 中加载?
PS:我不想在 post.js 中加载所有语言模板,那将是一个大文件,对网络来说是一种浪费
【问题讨论】:
标签: reactjs webpack react-templates