简体   繁体   中英

Client side template library for mootools?

I am using mootools for my project. Any recommendations for client side template library that plays well with mootools?

Most of the time MooTools String.substitute() works fine.

Another great script from Thomas Aylott is 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.

And of course, as mentioned, you can find more here: http://mootools.net/forge/browse?search=template .

check out JavaScript Micro-Templating by John Resig. 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. So I just decided to stick with it. @digitaraid Thanks for tips. Ones which are on forge appeared somewhat complex to me.

There is also handlebars.js which is interesting too. I will try that in next few days.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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