-
Notifications
You must be signed in to change notification settings - Fork 26
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
require tpl模板文件出错 #93
Comments
简单的文件没问题,但我的工程中有问题,现在是否还有将tpl直接转换为文本的方式。 |
有的,提供下有问题的代码 — On Wed, Oct 9, 2013 at 5:55 PM, f0x1l notifications@github.com wrote:
|
应该是解析tpl别名的问题。公司的代码,不好提供。简单的程序复现不了,我再研究研究。 |
要源码的链接? |
文档的链接。 |
发现问题了,使用seajs1.3.1版本, |
这个插件应该是针对外部的tpl文件进行处理,但是现在spm build将tpl文件和js打包到了一个文件中。所以造成无法获取正常的结果。 |
最后应该生成这样的
|
现在我的模块中有require tpl代码
打包后有如下两部分代码
require:
var projectBodyTemplate = require("my/0.0.1/profile/templates/profile.tpl");
tpl:
define("my/0.0.1/profile/templates/profile.tpl", [], '----------------------模板内容-------------------‘);
但是projectBodyTemplate 最后得到的值是null。
是否有将tpl直接转换为文本的方式。
The text was updated successfully, but these errors were encountered: