Picture of Matt Leathes
Re: handlebars helper
by Matt Leathes - Wednesday, 26 June 2019, 3:18 PM
 

The code:

for (var name in helpers) {
    if (helpers.hasOwnProperty(name)) {
        Handlebars.registerHelper(name, helpers[name]);
    }
}

Is overkill if you've only got the one helper to register. This would work just as well:

Handlebars.registerHelper('mytest', function() {
    return "Hello World"
});