Ultralight Javascript Templating Posted by alake1 on Wednesday September 15, 2010 @07:57AM from the roberto.open-lab.com dept. http://roberto.open-lab.com/2010/09/14/easy-going-javascript-templates/?ultralight ( 3 comments | 28 points | on HN )
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