A templating system for node.js based on John Resig's JavaScript Micro-Templating.
Templates are just files with special <% %> tags (like PHP or Ruby tags) which will be replaced with passed-in data. Templates can also contain javascript code to be expanded.
<html>
<body>
Hello, <%=name>.
</body>
</html>
<html>
<body>
<% for (var i = 0; i < arr.length; i++) { %>
The value of arr[<%=i%>] is <%=arr[i]%> <br/>
<% } %>
</body>
</html>
To be updated soon.
Templates are cached after the first read from disk. This means that if you change a template file, you will need to restart the node app to see the change take effect.
There is an included example webserver app called example.js which uses the Nerve module to route URI requests. You can find the Nerve module here.