4 ms·
Ultralight Javascript Templating
- StarWars666 16y agoNice but not having loops in the templates makes for too poor a language. Still seeing it in action it looks quite fast.
- alake1 16y agoYes, the point opposed to statement-less templates is the speed, but I'm quite happy for the result :-)
- superk 16y agoI use this rewrite of resig's microtemplating: http://github.com/creationix/microtemplates http://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 http://pastebin.com/QpacVLcS