I have installed meteorite, and router package
Now I have a main page app.html
<body>
<div class="container">
<div class="page-header">
<a href="/">
<h1>Mi page</h1>
</a>
</div>
<div class="content">
{{renderPage}}
</div>
</div>
</body>
Ok, now all the pages are rendered inside {{renderPage}}.
Now users go to /panel and the users panel its rendered, here is the tricky part
This section have a cpanel_nav_div and a cpanel_body, and I think its more efficient that when the user remains in the panel section the cpanel_nav_div dont renders each time the user clicks on one of panel options links, so just the cpanel_body changes.
How is the best way to do this ??
Its there a way to do other router and filter routes, so when a route matches /panel/… all the content goes inside cpanel_body instead of go inside {{renderPage}} ????
Set a Session.get and Session.set and render content inside cpanel_body depending on session (with this we miss routes)
Use routes and render cpanel_nav and cpanel_body each time ?
thx for the help
You can tell Meteor not to re-render part of your template with preserve:
So you would probably want to use the preserve method to tell Meteor not to re-render your cpanel_nav_div element.