[SOLVED] Template name as variable

I wonder if there’s a way of realizing this concept:

tplName='addPost'

Template.tplName.helpers
	...
Template.tplName.events
	...
Template.tplName.onCreated ->
	...
Template.tplName.onRendered ->
...

That would be really handy in my proj)

Found the answer here

(Don’t remove my question, as it’s more clear of its purpose than the original topic with the answer)

tplName='addPost'

Template[tplName].helpers
...

may also be what you’re looking for