For example my html is
<template name=atest>
<a href={{route}} data-test=test>Click</a>
</template>
In meteor template helpers, I want to be able to select the anchor tag.
Template.atest.route = function() {
console.log(this.data-test);
};
I am not sure if this can be done or not, but certainly, it cannot be done via any method I have tried. I know there is a way to pass argument in a template instance, but I don't want that. I want to be able to select that anchor tag that template instance is in and do something with it.
Appreciate any help I can get.