Skip to content

Commit f6f522f

Browse files
authored
Merge pull request #4590 from segmentio/4440-merge-tags
Email Template Editor updates
2 parents 85d1944 + 0cc5523 commit f6f522f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/engage/content/email/editor.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,26 @@ Add merge tags in the visual editor to personalize your message with user profil
125125
2. Select the profile traits to include from the drop down menu.
126126
3. Based on cursor placement, profile traits are added to the email from merge tags.
127127

128+
Engage supports liquid templating to create dynamic content in the email design editor.
129+
130+
{% raw %}
131+
132+
For example, use `{% if %}`, `{% elseif %}`, and `{% else %}` tags to call a product by name if known, or use a default message:
133+
134+
```
135+
{% if profile.traits.product_title == "Sneakers" %}
136+
Hey, view our latest sneakers!
137+
{% elsif profile.traits.product_title == "Sandals" %}
138+
Hey, check out these sandals!
139+
{% else %}
140+
Hey, check out our latest footwear.
141+
{% endif %}
142+
```
143+
{% endraw %}
144+
145+
146+
To view more examples related to your use case, visit the [LiquidJS docs](https://liquidjs.com/tags/if.html){:target="blank"}.
147+
128148
## Save the template
129149

130150
After you design the email, click **Create Email Template**.

0 commit comments

Comments
 (0)