I have several global template helpers
Template.registerHelper("termSuffix",function(){});
Template.registerHelper("subjects",function(){});
Template.registerHelper("date",function(){});
...
I tried this (like normal/local template helpers)
Template.registerHelper({
termSuffix:function(){},
subjects:function(){},
date:function(){}
});
But it throws Exception from Tracker recompute function:Error: No such function: termSuffix
This syntax is not supported for global helpers. Docs Code
If you think it's a compelling enough change to the library, you could submit a pull request.
Meanwhile, you can wrap the Template.registerHelper function with your own:
or defined without chaining in underscorejs:
Then use it like this: