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://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