Client side template library for mootools?
I am using mootools for my project. Any recommendations for client side temp开发者_如何学JAVAlate 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.
精彩评论