How to use TWIG in email templates ?

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 MailPion too.

You can use twig syntax in your templates like this:

{% if FNAME == ‘John’ %}

You are john doe.

{% endif %}

More examples of TWIG uses can be found here.

Leave a Reply

Your email address will not be published. Required fields are marked *