Skip to content

Commit

Permalink
Add locals to the route generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mriska committed Apr 26, 2018
1 parent 62189ae commit bb7d36e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blueprints/route/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ module.exports = {
return blueprint.fileMapTokens.apply(blueprint, arguments);
},

locals: function() {
var blueprint = ancestralBlueprint('route', this.project);
return blueprint.locals.apply(blueprint, arguments);
},

shouldTouchRouter: function(name, options) {
return ancestralBlueprint('route', this.project).shouldTouchRouter(name, options);
},
Expand Down

0 comments on commit bb7d36e

Please sign in to comment.