I see in the examples, and have created a template helper as a function that processes some type of job.
My question is , is it possible to create a template helper as an object such that you can call different functions from within the object.
Something like this.
Template.registerHelper("someObject", {
getPeople: function () {
return something;
},
getFriends: function () {
return somethingElse;
}
});
<template name="foo">
<h1>{{someObject.getPeople 'hello'}}</h1>
</template>