Created
May 15, 2013 19:30
-
-
Save camshaft/5586646 to your computer and use it in GitHub Desktop.
Capture render result
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
app.get("/route", function(req, res, next){ | |
res.render("my-view", function(err, view){ | |
if(err) return next(err); | |
// Do something specific with the view | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment