README.markdown

MicroTemplates

MicroTemplates is a super simple templating library written by John Resig of jQuery fame. This is a port to be used with server-side javascripts like node.js. The library exports a single function called "tmpl" that compiles a template and optionally executes it or returns a function that can be reused.

Syntax

Basically the syntax is pure HTML with embedded javascript code. You can use <%...%> for raw code insertion and <%=...%> for expressions that you want interpolated.