Skip to content

Instantly share code, notes, and snippets.

@vajahath
Created September 30, 2015 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vajahath/a04556aa52310465b425 to your computer and use it in GitHub Desktop.
Save vajahath/a04556aa52310465b425 to your computer and use it in GitHub Desktop.
How to pass variables to res.render() in Node.js
.
.
.
app.get('/', function(req, res)
{
// not working :(
res.render('index', {
"status":"loggedin",
"title":"home"
});
});
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment