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

求提供一个TextInline插件 #353

Open
otakustay opened this issue Jun 16, 2016 · 1 comment
Open

求提供一个TextInline插件 #353

otakustay opened this issue Jun 16, 2016 · 1 comment
Assignees

Comments

@otakustay
Copy link
Member

效果是将text插件加载的模块直接变成字符串,如:

// foo.tpl
<div>
    Hello World
</div>

// foo.js
var fooText = require('text!./foo.tpl');

编译后:

var fooText = '<div>\n    HelloWorld\n</div>';
@otakustay
Copy link
Member Author

目标文件不一定是HTML格式的,所以不能使用html2js等工具,只能当纯文本看待

@leeight leeight self-assigned this Jun 16, 2016
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