Liquid
Bento uses Liquid to render dynamic content in your emails. This allows you to use variables and logic to customize your emails. Sometimes you want to use the same snippet in multiple emails, such as an ad slot. You can create Environment Variables
to store these snippets and use them in your emails.
First, create an Environment Variable
with the snippet you want to reuse. For example, if you want to reuse an ad slot, you can create an Environment Variable
called ad_slot
with the code.
key: ad_slot
value: <div>test</div>
Next, in your email template, you can use the ENV
object to access the Environment Variable
you created.
{{ ENV.ad_slot }}