Trying to make some simple handlebars helpers
Handlebars.registerHelper('if_eq', function(context, options) {
if (context == options.hash.compare)
return options.fn(this);
return options.inverse(this);
});
Getting this error.
ReferenceError: Handlebars is not defined
What's the correct way to do it.
api.use('handlebars', 'client')
inpackage.js
.Object #<Object> has no method 'registerHelper'