Does the email editor support handlebars language

Does your template engine support handlebars templating language that will allow me to show dynamic content? I’m testing very basic handlebars with a free account and am getting an error so I think the template engine doesn’t support the syntax. If so, would it be different with a paid plan?

1 Like

We have a templating language that allows you to put variables inside your emails, like described here: https://help.brevo.com/hc/en-us/articles/360000946299-Personalize-your-emails-using-Brevo-Template-Language

It’s not depending on your plan, it’s the same for everyone.

Did I get your question well?

It’s very close to the « Block Visibility » section of the page you shared. For example my code looks like this:
{{ #if track2-name}}


{{track2-name}}


Start date: {{track2-start-date}}


End date: {{track2-end-date}}



{{/if}}

However my plan was to have a direct zapier integration that would update the variable tags and the handlebars would read the variable tag data in evaluating if the conditions were true or not true. I think I can accomplish the same thing using the visibility option of your template builder except that I will need to create custom fields for contacts for all of the variable data so that I can use the block visibility option to evaluate the conditions of the variable data. This might be a solution - So my questions are:

Does your template builder have a contact specific preview option? (This would allow me to put it in email address and see how the email template looks for that specific contact)

Is there a limit on the number of custom fields per contact?

1 Like

Ok I see, thanks.

I will need to create custom fields for contacts for all of the variable data

why would you need custom fields for each variable data? I see another possibility: you could do If/else on params sent, like this:

You don’t need to create a custom field for each data. The only condition for this is to be able to send the variable data from Zapier to Brevo, in the call you’re doing to send the transactional email, but I think (I don’t know, haven’t tested so far) it’s possible, no?

you’re looking for a way to dynamically update email content using variable tags and Handlebars, with the conditions evaluated based on Zapier integration data. Here’s how you can achieve this and answers to your specific questions:

Contact-Specific Preview Option

Yes, our template builder does include a contact-specific preview option. This feature allows you to input a specific email address and preview how the email template will appear for that particular contact. It’s a great way to ensure that all the dynamic content and conditions render correctly for different recipients.

Limit on Custom Fields Per Contact

There is a limit on the number of custom fields you can create per contact. The exact limit can vary based on your subscription plan, so it’s best to check your plan details or contact our support team for the specific number applicable to your account. Generally, this limit is designed to accommodate a wide range of customization needs, so you should be able to create the necessary custom fields for your variable data.

By using the block visibility option in the template builder and creating custom fields for your contacts, you can effectively manage the dynamic content without relying solely on Handlebars conditions. This method ensures that your emails are personalized and relevant based on the specific data associated with each contact.