Skip to content

Commit

Permalink
appname as dynamic helper
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Sep 1, 2011
1 parent 259a765 commit d871502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app.js
Expand Up @@ -11,7 +11,8 @@ app.dynamicHelpers({
// however if you run the mounting example
// it adjusts to /blog/post/add
return '/' == app.route ? '' : app.route;
}
},
appName: function(req, res){ return 'node.js express demo' }
});

// Include all routes here
Expand Down
2 changes: 0 additions & 2 deletions settings.js
Expand Up @@ -199,7 +199,6 @@ function bootErrorConfig(app) {
}
});

appName = 'node.js express demo'

/**
* Apply basic auth to all post related routes
Expand All @@ -208,7 +207,6 @@ function bootErrorConfig(app) {
// If you need basic auth, uncomment the below
/*
app.all('(/*)?', basicAuth(function(user, pass){
appName = 'Noobjs'
return 'user' == user && 'pass' == pass;
}));
*/
Expand Down

0 comments on commit d871502

Please sign in to comment.