Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

In view-locals, is `/locals` supposed to fail? #1370

Closed
LarryBattle opened this Issue · 0 comments

2 participants

@LarryBattle

In the example view-locals, an error is generated when visiting the url localhost:3000/locals since users.jade can't find variable users.

app.get('/locals', function(req, res){
  res.render('user', { title: 'Users' });
});

Is this expected behavior or a bug?

@tj tj closed this issue from a commit
@tj tj fix view-locals example. Closes #1370
this was from 2x, doesnt need to be there at all
44d0625
@tj tj closed this in 44d0625
@jseip1679 jseip1679 referenced this issue from a commit
@tj tj fix view-locals example. Closes #1370
this was from 2x, doesnt need to be there at all
6cfe681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.