Hi,
Are the EmailTemplates capable of handling logic inside through Handlebars. I've seen some helpers that could be used but I tried it and it did not worked. I know the templates should be logicless as the implemention of mustache is concerned, but i've seen some helpers that I guess created for users who want to implement some logic in the templates.
Sample implementation below that did not worked.
Such scenarios, its better to have this simple logic in the template level.
Please let me know if there are other ways.
Thanks!
Regards,
Brian
Are the EmailTemplates capable of handling logic inside through Handlebars. I've seen some helpers that could be used but I tried it and it did not worked. I know the templates should be logicless as the implemention of mustache is concerned, but i've seen some helpers that I guess created for users who want to implement some logic in the templates.
Sample implementation below that did not worked.
HTML Code:
{{#ifEqual User.salutationName "Mr"}} Hello Mr. {User.lastName}, {{/ifEqual}} {{#ifEqual User.salutationName "Ms"}} Dear Ms. {User.lastName}, {{/ifEqual}}
Please let me know if there are other ways.
Thanks!
Regards,
Brian
Comment