Using Twig

Twig overview

Twig syntax provides a simple, powerful way to
include dynamic content, directly within email templates. Twig syntax allows all of
this dynamic templating to occur outside of code, meaning changes are done quickly in the
template, with no update to a code base required.

Personalizing email with Twig

We support the use of Twig in our emails. This page will describe how to use the following

This page has use cases with examples that include the described helpers.


This is an example
receipt template

This receipt template is using these helpers:

Multiple languages

This is an example
template that lets you have content in multiple languages

This template is using this helper:


This is an example
newsletter template

This template is using these helpers:

Test Data should contain:

Shipping to @{{}}