Skip to content

Instantly share code, notes, and snippets.

@topliceanu
Created November 9, 2011 14:16
Show Gist options
  • Save topliceanu/1351552 to your computer and use it in GitHub Desktop.
Save topliceanu/1351552 to your computer and use it in GitHub Desktop.
a simple html renderer for express.js, no need for ejs or jade
//register a *simple* html renderer
app.register( '.html', {
compile: function( str, options ){
return function( locals ){
return str;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment