Client side templates and partial views and express
Templating engines must provide a compile
function.
https://github.com/visionmedia/express/blob/master/lib/view.js#L367
You can define the default templating engine by doing app.set('view engine', 'jqtpl')
or let express guess from the file extension. Express will load automatically that engine by requiring it.
https://github.com/visionmedia/express/blob/master/lib/view/view.js#L122
You can see one example using markdown for example:
https://github.com/visionmedia/express/blob/master/examples/markdown/app.js
You might check out Knockout.js. It's an awesome data binding/templating solution that can re-render onscreen HTML on the fly by watching your data model.
http://channel9.msdn.com/Events/MIX/MIX11/FRM08
Supports nested templates (in a few different ways), attaching events to your templates, having compound template variables, and attaching your model objects to both input and output elements.
Way more flexible than the built-in jQuery templating, or other data binding options like Chain.js :)