mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
Blog example using "home"
This commit is contained in:
parent
c9e41db826
commit
c3a2aff9d3
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user