I write an application which consists from nested tabs. As an example I took https://github.com/tbranyen/backbone-boilerplate. I also use RequireJS.
I have at least two levels of nested tabs. Some of them have similar structure and I can reuse their views.
For example, I have the tab named "Articles" which contains the tabs: "New", "Changed", "Deleted" (in practise the number of tabs is much more). I have about the following routes:
/articles
/articles/new
/articles/changed/
/articles/deleted
These routes maps to the method named "showPanel" which takes two arguments: panel and subPanel. Using these arguments I want to show needed panel.
Is there any pattern which I can apply to resolve this issue or any other examples? Thanks!