[solved] Access parent template name


#1

Is there a way to get:

  1. current tpl name
  2. parent tpl name
    in a helper?

#2
// Current template name
Template.instance().view.name
// Parent template name
Template.instance().view.parentView.name

#3

@lai :thumbsup: mah man!


#4

No problem. Check out the Template.instance() object, there’s tons of stuff in there.