Permalink
Browse files

Update README.md

Missing next() instruction when binding helpers to the request
  • Loading branch information...
1 parent 26519f4 commit dbf30fe8d08a7baaf959c6f8b2dac636eb6afdfa @trackball trackball committed Feb 12, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
@@ -94,6 +94,8 @@ In an express app, you might use i18n.init to gather language settings of your v
res.locals.__n = function() {
return i18n.__n.apply(req, arguments);
};
+ // do not forget this, otherwise your app will hang
+ next();
});
app.use(app.router);

0 comments on commit dbf30fe

Please sign in to comment.