Hey,
basicly what i want to do is:
{{ myButton "hello" "#fff" "href" }}
this should create something like Hello and this should be added to the DOM. so far this part is working:
Template.registerHelper("mBtn", function(text, color, href){
var b = HTML.toHTML(HTML.BUTTON({"class":"ripple"}, text));
return Spacebars.SafeString(b);
});
my problem now is that i want to modify the onClick callback on that element because i want to add the material design click animation:
http://codepen.io/Craigtut/pen/dIfzvis there a way to do that? or should i use a template instead ?