We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我不是 100% 确定你会遇到什么诱惑,但是 ExtJS 4.0 有一个 MVC 实现和用于 Visual/html 模板的 XTemplate 类,它还具有扩展所有组件和类的能力,事实上,视图就是这样的通常定义(通过扩展其现有组件)。
看看这里:http://www.sencha.com/products/extjs
I'm not 100% sure what you what around tempting, but ExtJS 4.0 has an MVC implementation and the XTemplate class for visual/html templating, it also has the ability to extend all it's components and classes, in fact, that's how views are normally defined (by extending their existing components).
Have a look here: http://www.sencha.com/products/extjs
Backbone.js 允许您插入自己的模板引擎。默认情况下,它使用 jquery 模板,但如果您找到满足您要求的模板,您可以将其替换(例如 handlebars 或 < a href="http://mustache.github.com/" rel="nofollow">小胡子)。我已经使用backbone有一段时间了,我对它作为客户端“伪MVC”框架感到非常满意。
Backbone.js allows you to plug in your own templating engine. By default it uses jquery templates, but if you find one that meets your requirements you can swap it in(e.g. handlebars or moustache). I have been using backbone for a while and I am quite happy with it as a client-side "pseudo-MVC" framework.
您可能会发现这篇文章对于 MVC 框架列表很方便。
是否有 JavaScript MVC(微)框架?
还有一些额外的内容模板支持:jQuery 模板、_.template,Haml-js,eco
据我所知我知道没有一个选项支持这种可扩展模板,但我认为这是一个很棒的想法。
You might find this post handy for a list of MVC frameworks.
Is there a JavaScript MVC (micro-)framework?
With some additional templating support on: jQuery templates, _.template, Haml-js, eco
As far as I'm aware none of the options out there support this kind of extensible templates, I think its an awesome idea though.