Announcement

Collapse
No announcement yet.

Logic for Email Templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logic for Email Templates

    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.

    HTML Code:
    {{#ifEqual User.salutationName "Mr"}} Hello Mr. {User.lastName}, {{/ifEqual}}
    {{#ifEqual User.salutationName "Ms"}} Dear Ms. {User.lastName}, {{/ifEqual}}
    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


  • #2
    Hello,
    Are the EmailTemplates capable of handling logic inside through Handlebars - No

    Comment


    • brianpunzalan
      brianpunzalan commented
      Editing a comment
      Ok noted, thanks for response!
Working...
X