84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
handlebars , jsrender,Mustache还是Juicer
ringa_lee
用哪个应该看不同的需求,如果用于前端且不需要逻辑,推荐Mustache。
另外推荐看看下面这个页面,帮你选模块引擎: Template-Engine-Chooser:http://garann.github.com/template-cho... 选择依据主要有下面几个:
我觉得handlebars不错,不过这些模板都差不多吧。 相对于ejs之类的模板,结构比较清晰,把逻辑转移到模板之外。 另外比较特别的就是jade,更加简洁和清晰,不过我没有在浏览器客户端用过。
推荐 https://github.com/aui/artTemplate 性能比较参见:http://aui.github.com/artTemplate/tes...
首先,不推荐 jade,这玩意会大大加大你的开发工作量。一个粗心引起的缩进问题就会搞残自己。
handlebars , ejs 都还不错。在 nodejs 中,我现在主要使用 ejs,推荐之。
我认为mustache比较好,各个语言都有对应的解析器。而且语法比较熟悉
我用underscore.js里面的那个templating引擎, 几个项目下来了, 暂时还没有遇到什么问题
handlebars 挺好的, 不过我现在在用jade,简洁
不知道你们的node.js的前端模版是谁用。如果是后台开发人员用的话,我不太清楚。如果是前端人员用的话,建议用ejs。有几个好处,结构与HTML差距不大,前端调试页面等很方便,同时也方便前端人员学习。另外,如果前端学过java的struts等后台框架,学ejs更加的快速,因为与其差距很小。
hogan 比较靠谱。语法和Mustache一样,Twitter优化了下。
nodejs 为什么不去用ejs,上手比较快的。http://www.embeddedjs.com/
用哪个应该看不同的需求,如果用于前端且不需要逻辑,推荐Mustache。
另外推荐看看下面这个页面,帮你选模块引擎:
Template-Engine-Chooser:http://garann.github.com/template-cho...
选择依据主要有下面几个:
我觉得handlebars不错,不过这些模板都差不多吧。
相对于ejs之类的模板,结构比较清晰,把逻辑转移到模板之外。
另外比较特别的就是jade,更加简洁和清晰,不过我没有在浏览器客户端用过。
推荐 https://github.com/aui/artTemplate
性能比较参见:http://aui.github.com/artTemplate/tes...
首先,不推荐 jade,这玩意会大大加大你的开发工作量。一个粗心引起的缩进问题就会搞残自己。
handlebars , ejs 都还不错。在 nodejs 中,我现在主要使用 ejs,推荐之。
我认为mustache比较好,各个语言都有对应的解析器。而且语法比较熟悉
我用underscore.js里面的那个templating引擎, 几个项目下来了, 暂时还没有遇到什么问题
handlebars 挺好的, 不过我现在在用jade,简洁
不知道你们的node.js的前端模版是谁用。如果是后台开发人员用的话,我不太清楚。如果是前端人员用的话,建议用ejs。有几个好处,结构与HTML差距不大,前端调试页面等很方便,同时也方便前端人员学习。另外,如果前端学过java的struts等后台框架,学ejs更加的快速,因为与其差距很小。
hogan 比较靠谱。语法和Mustache一样,Twitter优化了下。
nodejs 为什么不去用ejs,上手比较快的。http://www.embeddedjs.com/