sendgrid / email-templates

A repository of common email templates to use and modify to your heart's content.
https://sendgrid.com
MIT License
818 stars 987 forks source link

Sendgrid template does not support #with helper #92

Open adokarasev opened 2 years ago

adokarasev commented 2 years ago

Actual Behaviour

Can not use with (https://handlebarsjs.com/guide/block-helpers.html#the-with-helper) block helper in email template. It does work in UI editor but actual email with the same test data does not contain the block.

Expected Behaviour

Email includes includes all blocks

Steps to reproduce it

{
    "data": {
        "one": 1,
        "two": 2,
        "three": 3
    }
}
angularsen commented 1 year ago

Bump, same here. I find it very odd that they refer to handlebars docs, but don't support the documented syntax for built-in helpers.