TWIG Code Samples

The BSD mailer has the ability to send out mailings with conditional content, which will give recipients different text based on a variety of factors. This uses our special templating system called Twig, a supported scripting language. Below are a few helpful examples of twig snippits you might want to include in your emails:

You can see some helpful code examples here on our Twig Documentation Site, including:

  • Dynamic Highest Previous Contribution Asks
  • Donor/Non-donor conditional content
  • QuickDonate conditional content
  • Different Content to Different US States
  • Target Content to GMail users only


Didn't find the answer you were looking for?

Email us at