Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Javascript: Use underscore templating to parse HTML files in Express
// Express with Underscore templating
app.register('.html', {
compile : function(str, options) {
return function(locals) {
return _.template(str, locals);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.