Skip to content

Instantly share code, notes, and snippets.

@camshaft
Created May 15, 2013 19:30
Show Gist options
  • Save camshaft/5586646 to your computer and use it in GitHub Desktop.
Save camshaft/5586646 to your computer and use it in GitHub Desktop.
Capture render result
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