jQuery模板已弃用? [英] jQuery Templates are deprecated?

查看:97
本文介绍了jQuery模板已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到,根据 jQuery插件模板页面,jQuery插件已从Beta变为不推荐使用而未通过真正的发行版.我在jquery.com或其相关网站上找不到有关为什么的任何信息.或者在可能有替代产品时.也许是1.8?

I see that per the jQuery plugin template page that jQuery plugins have gone from beta to deprecated without passing a real release. I can't find any info on jquery.com or their related sites about why. Or when a replacement might be available. Maybe 1.8?

这非常令人沮丧,因为我的项目对jQuery模板进行了大量投资.现在看来,这是一笔不小的投资,我们正在寻找其他基于jQuery的东西,包括JavascriptMVC.

This is very frustrating because my project has made a big investment in jQuery templates. Now it looks like a bad investment and we're looking for something else that is jQuery-based, including JavascriptMVC.

还有更好的建议吗?我很乐意在评论中提供基本原理或其他信息,但我希望将建议作为答案.

Any better suggestions? I'll be happy to take rationale or other information in the comments, but I'd prefer suggestions as answers.

推荐答案

jQuery模板还没有死,只是没有作为项目的正式模板语言使用.该项目的维护者可能仍会进行一些更新(并计划在将来重做很多).

jQuery Templates are not dead, they just aren't going in as an official template language of the project. The maintainer of that project will likely still make some updates (and has plans to redo quite a bit of it in the future).

JavaScriptMVC比模板要复杂得多,您可以使用几乎任何想要的模板语言.

JavaScriptMVC is quite a bit more complex than just templates and you can use just about any templating language that you want with it.

如今,一些更流行的模板语言是胡子/ Dust.js Haml 嵌入式JavaScript 等.前三个实际上与jQuery模板的语法非常相似,不同之处在于它们不是为元素自然创建jQuery对象.但这很容易添加.

Some of the more popular templating languages these days are Mustache/Handlebars, Dust.js, Haml, Embedded JavaScript, and a few others. The first three are actually pretty similar syntax to the jQuery templates with the exception that they don't natively create jQuery object for your element. That's easy to add though.

这篇关于jQuery模板已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆