It's too easy to create helper in meteor blaze. Each template has a local dictionary of helpers that are made available to it, and this call specifies helpers to add to the template’s dictionary. In a template helper, the data context is accessible through the this keyword. It’s also important to note that a template helper will inherit its data context from the template itself.
Template.templateName.helpers({
helperName: function() {
// your code here
},
otherHelperName: function() {
// your code here
}
})
Now you can invoke this helper in the template.
{{helperName}} THANKS
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Balraj Singh
Balraj is a creative UI designer with experience and capabilities to build compelling UI designs for Web and Mobile Applications. Balraj likes playing tech Quiz and loves bike riding.