Has anyone found a good solution for developing templates for backbone.js that can be used on the server and the client?
This is really desirable with the backbone.js hi
Here's a very simple example of rendering an Underscore/Backbone template in NodeJS. I've installed Underscore using NPM.
var http = require('http'),
_ = require('underscore');
http.createServer(function (req, res) {
var template = "<%=message%>
"
res.end(_.template( template, {message: "Hello world"}));
}).listen(8080, 'localhost');