Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持多模板在同一文件? #82

Closed
awebird opened this issue Mar 2, 2015 · 1 comment
Closed

能否支持多模板在同一文件? #82

awebird opened this issue Mar 2, 2015 · 1 comment

Comments

@awebird
Copy link

awebird commented Mar 2, 2015

目前的模板名是用文件名区分的,一个模板要新建一个文件
能否支持多个模板在同一个文件下(有些场景,模板比较多,或者有同类的一些零碎的几行小模板,放在一个文件比较方便),比如沿用script type="text/html" id='tpl_name1' 做模板名放在同一文件的方式

@Double7
Copy link

Double7 commented Jun 29, 2015

我也遇到类似的需求,我是有多个数据源。我是同时请求多个数据源后,将他们进行整合封装,然后将之前的多个模板也进行了合并,然后统一输出。希望能够给你一些思路。

@awebird awebird closed this as completed Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants