“JavaScript Micro-Templating”的区别是什么?和mustache.js / handlebars.js? [英] What is the difference between "JavaScript Micro-Templating" and mustache.js/handlebars.js?
问题描述
有太多的模板引擎,我真的不知道如何选择!我认真研究这,但仍然无所适从。
我主要想知道mustache.js / handlebars.js的优点吗?与 JavaScript Micro-Templating 相比较
请举例说明,非常感谢! 解决方案
/ p>
它包含了很多考虑因素和良好的现场方法。
此外,它来自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 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屋!