Created
August 3, 2021 19:53
-
-
Save prayashm/7962b9cca2b156f087d278b6659540bc to your computer and use it in GitHub Desktop.
Sendgrid Dynamic template renders fine in Code studio, but not when sent as email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items": [1, 2, 3] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
{{#if items.length}} | |
<ul> | |
{{#each items}} | |
<li>{{this}}</li> | |
{{/each}} | |
</ul> | |
{{/if}} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Code Preview:
![image](https://user-images.githubusercontent.com/424487/128077933-bdfce019-bb2a-4490-a5b9-1a4cd7aaf7e4.png)
In email:
![image](https://user-images.githubusercontent.com/424487/128077904-74fb67f8-2612-41d0-8e24-b74d0eeae51d.png)