[–] StarWars666 15y ago ↗ Nice but not having loops in the templates makes for too poor a language. Still seeing it in action it looks quite fast. [–] alake1 15y ago ↗ Yes, the point opposed to statement-less templates is the speed, but I'm quite happy for the result :-)
[–] alake1 15y ago ↗ Yes, the point opposed to statement-less templates is the speed, but I'm quite happy for the result :-)
[–] superk 15y ago ↗ I use this rewrite of resig's microtemplating:http://github.com/creationix/microtemplatesIt's as versatile as I'll ever need - it evaluates any javascript between the tags. If you don't like the syntax it's really easy to change - just change the regexp on line 2. A complete templating engine in a dozen lines of code:http://pastebin.com/QpacVLcS
3 comments
[ 4.5 ms ] story [ 20.3 ms ] threadhttp://github.com/creationix/microtemplates
It's as versatile as I'll ever need - it evaluates any javascript between the tags. If you don't like the syntax it's really easy to change - just change the regexp on line 2. A complete templating engine in a dozen lines of code:
http://pastebin.com/QpacVLcS