After researching tutorials, I discovered two methods for utilizing iron:router:
The first method involves the following code snippet:
Router.route("/", function(){
this.render("navbarMain", {
to: "navigation"
});
this.render("firstPage",{
to: "main"
});
Whereas the second method can be implemented with the following code snippet:
Router.route("/", {
name: "home",
template: "home"
});
I attempted to add a name attribute to the first code snippet without success. If combining these two approaches is not feasible, how can I reference the root page (in pathFor)? Where should I place the name attribute?