寻找带有模板的 JS MVC 框架

发布于 2024-12-25 10:33:38 字数 1539 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

土豪我们做朋友吧 2025-01-01 10:33:38

我不是 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

魄砕の薆 2025-01-01 10:33:38

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.

病女 2025-01-01 10:33:38

您可能会发现这篇文章对于 MVC 框架列表很方便。

是否有 JavaScript MVC(微)框架?

还有一些额外的内容模板支持:jQuery 模板_.templateHaml-jseco

据我所知我知道没有一个选项支持这种可扩展模板,但我认为这是一个很棒的想法。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文