简体   繁体   English

Mootools的客户端模板库?

[英]Client side template library for mootools?

I am using mootools for my project. 我正在为我的项目使用mootools。 Any recommendations for client side template library that plays well with mootools? 对与mootools配合使用的客户端模板库有什么建议吗?

Most of the time MooTools String.substitute() works fine. 大多数时候,MooTools String.substitute()都能正常工作。

Another great script from Thomas Aylott is https://github.com/subtleGradient/mootools-subtle-templates . Thomas Aylott的另一个出色脚本是https://github.com/subtleGradient/mootools-subtle-templates The repository seems dated, but the code is mostly basic JavaScript and works with the current MooTools version. 该存储库似乎已过时,但是代码大部分是基本的JavaScript,并且可以与当前的MooTools版本一起使用。

And of course, as mentioned, you can find more here: http://mootools.net/forge/browse?search=template . 当然,如上所述,您可以在此处找到更多信息: http : //mootools.net/forge/browse?search=template

check out JavaScript Micro-Templating by John Resig. 请查看John Resig的JavaScript Micro- Templating。 It's a tiny, yet powerful stand-alone script that offers a great templating solution. 它是一个很小但功能强大的独立脚本,可提供出色的模板解决方案。

Finally I tried mustache.js and it just worked fine. 最后,我尝试了mustache.js,它运行良好。 So I just decided to stick with it. 所以我决定坚持下去。 @digitaraid Thanks for tips. @digitaraid感谢您的提示。 Ones which are on forge appeared somewhat complex to me. 对我来说,那些正在锻造的人似乎有些复杂。

There is also handlebars.js which is interesting too. 还有handlebars.js也很有趣。 I will try that in next few days. 我将在接下来的几天内尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM