Created
April 24, 2014 01:52
-
-
Save wehrhaus/11238856 to your computer and use it in GitHub Desktop.
Render `pretty` Jade templates via Express v3.x using 'pretty' flag
This file contains 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
if (app.get('env') === 'development') { | |
app.use(function(req, res, next) { | |
app.locals.pretty = true; | |
next(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment