How to use TWIG in email templates ?

Last modified: September 18, 2019
You are here:
Estimated reading time: < 1 min

Twig is a templating language for PHP, which is a boring way of saying that it’s a tool used to output variables inside HTML. You can use TWIG as the template engine for campaign templates inside The Expo Email Platform too.

You can use twig syntax in your templates like this:

{% if FNAME == ‘John’ %}

You are john doe.

{% endif %}

More examples about TWIG uses can be found here.

Was this article helpful?
Dislike 0
Views: 14