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

新需求,是否可以把模版放入js文件? #16

Closed
chtdomo opened this issue Mar 22, 2013 · 3 comments
Closed

新需求,是否可以把模版放入js文件? #16

chtdomo opened this issue Mar 22, 2013 · 3 comments

Comments

@chtdomo
Copy link

chtdomo commented Mar 22, 2013

新需求,实现单页多模块应用,所以想把各模块模版放入各自单独的文件中,比如

<script id="template_a" type="text/html" src="js/block/A.js"/> <script id="template_b" type="text/html" src="js/block/B.js"/> 是否可以实现模版读取出src中的文件内容,而不是script标签中间的内容? 谢谢
@aui
Copy link
Owner

aui commented Mar 22, 2013

正在开发中的版本有自动化工具,可以把模板编译成不依赖引擎的js文件,模板包含关系需要seajs管理

发自我的 iPhone

在 2013-3-22,上午11:49,chtdomo notifications@github.com 写道:

新需求,实现单页多模块应用,所以想把各模块模版放入各自单独的文件中,比如

是否可以实现模版读取出src中的文件内容,而不是script标签中间的内容?

谢谢


Reply to this email directly or view it on GitHub.

@chtdomo
Copy link
Author

chtdomo commented Mar 23, 2013

嗯,我现在把模板统一放在一个iframe页面里,各模块的js分开,也还算清晰,新版本出来前暂时这样吧,谢谢

@aui
Copy link
Owner

aui commented Mar 25, 2013

已经发布新版本v2.0

@aui aui closed this as completed Mar 25, 2013
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