Blog example using "home"

This commit is contained in:
Tj Holowaychuk 2010-07-26 08:59:26 -07:00
parent c9e41db826
commit c3a2aff9d3

View File

@ -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');
}
});