How to Use Template-specific Jinja Variables with Snippets

Recently, we received a question from a customer that prompted us to scratch our heads for a few seconds: “How can I use template-specific variables that aren’t passed into the data field of the API to send mail?” We did some research and devised¬†a pretty simple and interesting solution.

Snip out Repeated Code with Our New Snippet Support!

We recently introduced a new feature to simplify code reuse in email templates. Our new snippet support lets you define common HTML blocks once, then include them in multiple email templates. Snippets are perfect for components like headers and footers, or smaller components like social buttons and common links. Head over to our Help Center