News for hackers. Stuff that matters.
Re:Ultralight Javascript Templating by superk on Wednesday September 15, 2010 @07:49PM (#1696293)
I use this rewrite of resig's microtemplating:

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

Re:Ultralight Javascript Templating by StarWars666 on Wednesday September 15, 2010 @09:35AM (#1694144)
Nice but not having loops in the templates makes for too poor a language. Still seeing it in action it looks quite fast.
Re:Ultralight Javascript Templating by alake1 on Wednesday September 15, 2010 @09:38AM (#1694148)
Yes, the point opposed to statement-less templates is the speed, but I'm quite happy for the result :-)