Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 24, 2011
1 parent 4c316ba commit 6ae32fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/application.js
Expand Up @@ -86,11 +86,13 @@ app.defaultConfiguration = function(){
this.use(connect.query());
this.use(middleware.init(this));

// app locals
this.locals = function(obj){
for (var key in obj) self.locals[key] = obj[key];
return self;
};

// response locals
this.locals.use = function(fn){
if (3 == fn.length) {
self.viewCallbacks.push(fn);
Expand Down

0 comments on commit 6ae32fd

Please sign in to comment.