mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
fixed jade example for new locals
This commit is contained in:
parent
3ad6ab8c6a
commit
d1a790d103
|
|
@ -37,11 +37,7 @@ var users = [
|
|||
];
|
||||
|
||||
app.get('/', function(req, res){
|
||||
res.render('users', {
|
||||
locals: {
|
||||
users: users
|
||||
}
|
||||
});
|
||||
res.render('users', { users: users });
|
||||
});
|
||||
|
||||
app.listen(3000);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user