Skip to content

Instantly share code, notes, and snippets.

@rmharrison
Last active August 30, 2016 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmharrison/dd8626c85b28993f28605ab16802265e to your computer and use it in GitHub Desktop.
Save rmharrison/dd8626c85b28993f28605ab16802265e to your computer and use it in GitHub Desktop.
What's the mistake in the directory structure?
// app/router.js
Router.map(function() {
this.route('bacons', function() {
this.route('bacon', {path: '/:bacon_id'}, function() {
this.route('aiolis', function() {
this.route('aioli', {path: '/:aioli_id'}); // Hipsters rejoice.
});
});
});
});
// Directory structure
/*
* app
* └── templates
* ├── bacons
* │   ├── aiolis
* │   │   ├── aioli.hbs
* │   │   └── index.hbs
* │   └── bacon.hbs
* └── bacons.hbs
*/
// Aside: I wonder if the actual plural of aioli is aioli. Custom pluraliser?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment