Skip to content

Instantly share code, notes, and snippets.

@deepaksinghvi
Created March 28, 2012 17:45
Show Gist options
  • Save deepaksinghvi/2228645 to your computer and use it in GitHub Desktop.
Save deepaksinghvi/2228645 to your computer and use it in GitHub Desktop.
User List
// User list
app.get('/userlist', function(req, res) {
TestUser.find({}, function(err, user) {
user = user.map(function(u) {
return { username: u.username, password: d.password };
});
res.render('user/index.jade', {
locals: { d: user }
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment