Created
November 9, 2011 14:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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