Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

tpl文件 doc watch时exports字符串无引号出错 #1007

Closed
airyland opened this issue Sep 11, 2014 · 4 comments
Closed

tpl文件 doc watch时exports字符串无引号出错 #1007

airyland opened this issue Sep 11, 2014 · 4 comments

Comments

@airyland
Copy link

https://github.com/aralejs/tip/blob/master/src/tip.tpl

define(function(require, exports, module) {
        module.exports = < div class = "ui-poptip" > < div class = "ui-poptip-shadow" > < div class = "ui-poptip-container" > < div class = "ui-poptip-arrow" > < em > < /em>            <span></span > < /div>        <div class="ui-poptip-content" data-role="content">        </div > < /div>    </div > < /div>;
});

同时
@import url('alice-poptip');
这里的css地址解析有错。

@afc163
Copy link
Member

afc163 commented Sep 11, 2014

没看明白。

@airyland
Copy link
Author

不好意思,说得有点含糊。
你有空clone https://github.com/aralejs/tip 跑一个demo试试。

@airyland
Copy link
Author

传了个demo
http://spmjs.io/docs/tpl-test/latest/examples/index.html
http://spmjs.io/docs/tpl-test/latest/tpl.tpl.js

require html模板时,转换成模块时字符串少了引号而且多了空格。

define(function(require, exports, module) {
        module.exports = < span > Hello, I am a template. < /span>;
// 应该是
//      module.exports = '< span > Hello, I am a template. < /span>';
});

@afc163
Copy link
Member

afc163 commented Sep 11, 2014

这么晚还在。。明天看一看

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants