I want to do some comparisons in a handlebars template in an express-nodejs app.
It looks something like this:
{{# if(x==y)}}
equal string
{{else}}
not equal string
{{/if}}
I already installed the handlebars and express-handlebars packages. I read about the handlebars helpers but couldn't figure out a way to use them properly. I tried to add the helpers in the app.js file in my app, but I couldn't use them in my template file in view.
Any help would be helpful and appreciated.
Thanks