I am trying to create a custom helper using Meteor. Following to the doc here: https://github.com/meteor/meteor/wiki/Handlebars
I have tried to define my helper as foll
Your logic is good, just make some changes to the template
{{testHelper "value1" "value2"}}
Bare in mind that the testHelper function is only defined in the myTemplate template.
If you want to register testHelper globally you'll need to do something like this
Handlebars.registerHelper('testHelper', function(foo, bar){
console.log(foo);
console.log(bar);
});
Have fun