Example of Node.js Express registering Underscore.js as view engine?
var _ = require('underscore');app.register('.html', { compile: function (str, options) { var template = _.template(str); return function (locals) { return template(locals); }; }});
Now with express 3.0 , it's a bit different. Easy solution : https://github.com/haraldrudell/uinexpress
npm install uinexpress
then
app.configure(function () {app.engine('html', require('uinexpress').__express)app.set('view engine', 'html')