Permalink
Browse files

Blog example using "home"

  • Loading branch information...
tj committed Jul 26, 2010
1 parent c9e41db commit c3a2aff9d345aa51067e1efafcd83d35d5744fde
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/blog/blog/index.js
@@ -21,9 +21,9 @@ app.set('view engine', 'ejs');
app.dynamicHelpers({
basepath: function(){
// "this" is the app, we can
- // dynamically provide the mounted
- // route to all templates for url usage
- return this.route;
+ // dynamically provide the "home"
+ // setting to all views
+ return this.set('home');
}
});

0 comments on commit c3a2aff

Please sign in to comment.