There is a way with an iron router:
Router.current().render(Template.yourMainTemplateName).data();
I would not recommend it. Is there no way to rewrite it so that it does not need to be reloaded?
Another solution (perhaps better, depends on the use case) is to have the autostart function in your main template display a callback. If you define your dependencies with Template.getData (), it should run the code inside whenever the data changes.
Nick Lammertyn
source share