-
Notifications
You must be signed in to change notification settings - Fork 147
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
scrat 如何使用 handlebars 模板? #31
Comments
var tpl = __inline('a.handlebars');
var data = { ... };
var html = tpl(data);
console.log(html); |
明白了 对了,handlebars 版本是 3.0.3 。 有时间可以支持一下 |
可以 |
components 也升级到 3.0.3 版本了。 https://github.com/components/handlebars.js |
最后谢谢 @fouber 大神热情回复 |
components生态后面scrat想要抛弃,感觉要死了,没什么发展 |
好像 AMD 社区发展更好点 , scrat 以后怎么发展呢? |
先做好工具和框架,生态接谁的都行 |
我不认为现在的amd社区的生态质量有多高,许多组件基本上不可用啊,只能在发布者自己的项目中自hi |
发布了最新版的scrat@0.4.7,你升级一下吧,支持最新版handlebars,配置: // fis-conf.js
fis.config.set('modules.parser.handlebars', 'handlebars-3.x'); |
谢谢了 效率太高了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
好像 scrat 支持 handlebars 模板, 但是不会用呀! 文档不太详细,请@fouber大神提供例子,谢谢。
在线等回复
The text was updated successfully, but these errors were encountered: