I’m making my first application with Meteor and I’m a little bit confused about how to define the HTML main layout of the application. Like a lot of application I will have a sidebar on the left with a list of entity. And a click on one of them will load it on the main section. You cannot access this part of the application if you are not logged (so no need to handle a not logged sidebar). I am using the iron:router plugin.
So my question is : What is the best solution for defining the main layout?
Do I have to make a default layout template that I pass to the router as a default layout and call the good templates for the different yield parts (sidebar and center if needed)
Or do I have to write my default layout in the main.html and call here the template to render the sidebar (as it will be always here) and use the route for only the center part?
Sorry for the dummy question but maybe you will have a tuto to read (another ^^) or maybe the solution is obvious… Or maybe I didn’t describe sufficiently my layout to make a decision.
Thanks for the tips!