What can I use in a template to figure out the route name
that is associated with the route that I am currently on?
For example if I configured a route
You can define any options you want in your route config :
Router.route('/', {
name : 'home',
template : 'home',
title: 'Home'
});
and then access to title with this :
Router.current().route.options.title
This will output "Home"
var routeName = Router.current().route.getName();
var routeName = Router.current().route.name;
For the newer iron router, use:
var routeName = Router.current().route.getName()
This will output the name of the actual route you defined with this.route()
You can try Router.current().template