Now open Source view in the text element. How to use AWeber's text element so you can add custom Jinja code to your emails. Write or paste the following block of text into the Source view window and hit “ok”. {% set horoscopeDayType = [ “A good day”, “A bad day”, “A grand old time”, ]%} {% set horoscopeActivity = [ “feeding the ducks”, “finally finishing that time machine you’ve been working on”, “writing too many letters to too many editors”, ]%} <p>Today is going to be {{ horoscopeDayType | random }} as long as you avoid {{ horoscopeActivity | random }}.
</p> Copy When you click to preview your message, you’ll see your austria whatsapp data random horoscope. When you switch back and forth between edit and preview mode you should get a re-generated horoscope. How does this Jinja horoscope generator work? Let’s look at each of the sections of code we dropped in. {% set horoscopeDayType = [ “A good day”, “A bad day”, “A grand old time”, ]%} Copy This is an array, or collection, of phrases that will fill in the first section of the sentence: “Today is going to be {{ horoscopeDayType | random }}.
” Copy If you want to add new items that might get pulled, just add another line: Make sure that your new text is wrapped in quotation marks Make sure each line ends with a comma after the closing quote {% set horoscopeActivity = [ “feeding the ducks”, “finally finishing that time machine you’ve been working on”, “writing too many letters to too many editors”, ]%} Copy This is the array that is filled with items that randomly get pulled into the second part of the sentence: as long as you avoid {{ horoscopeActivity | random }}.
Customer Retention Through SMS Myths vs Facts
-
- Posts: 502
- Joined: Tue Jan 07, 2025 6:19 am