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

There are no comments on this comment yet.