“JavaScript Micro-Templating”的区别是什么?和mustache.js / handlebars.js? [英] What is the difference between "JavaScript Micro-Templating" and mustache.js/handlebars.js?

查看:79
本文介绍了“JavaScript Micro-Templating”的区别是什么?和mustache.js / handlebars.js?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我再次对这样的新手问题表示歉意,如果这个问题已经在其他地方得到了解答。

有太多的模板引擎,我真的不知道如何选择!我认真研究,但仍然无所适从。

我主要想知道mustache.js / handlebars.js的优点吗?与 JavaScript Micro-Templating 相比较

请举例说明,非常感谢! 解决方案

/ p>

http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more



它包含了很多考虑因素和良好的现场方法。


此外,它来自LinkedIn,因此您可以相信它非常全面。

编辑:

只有真正的遗漏才是来自Twitter的Hogan,可能是因为它当时(现在仍然是)这个街区上的新孩子。 http://twitter.github.com/hogan.js/ )就像基于小胡子的把手。功能介于胡须和把手之间。表现5/5。

我在客户端和服务器端都使用Hogan,一旦掌握了它,真的很棒。


First, I apologize for such a novice question again, and if this has been answered elsewhere.

There are too many template engine,I really do not know how to choose!I seriously study this, but still at a loss.

I mainly want to know the advantages of mustache.js/handlebars.js? Compared with the JavaScript Micro-Templating

Please give examples to explain, thank you very much!

解决方案

For a pretty well-rounded comparison see

http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more

It includes a lot of considerations and a good 'in-the-field' approach.

Moreover, it's from LinkedIn so you can trust it's pretty thorough.

EDIT:

Only real omission is Hogan from Twitter, likely because it was (and still is) a new kid on the block . http://twitter.github.com/hogan.js/) Like Handlebars based on Mustache. Functionality is in between Mustache and Handlebars. Performance 5/5.

I use Hogan both on the client-side and with Nodejs on the server-side and it's really great working with it once you get the hang of it.

hth

这篇关于“JavaScript Micro-Templating”的区别是什么?和mustache.js / handlebars.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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