Buttondown Documentation
Template variables are a concept that have multiple names: "mail merges" might be one you're more familiar with if you have a marketing and email background.
The concept is to add snippets in your email that are programmatically replaced when Buttondown sends out an email. This with a little templating logic allows you to customize your content per-subscriber or to repeat certain key concepts in your email without having to change them over and over again.
Variable | |
---|---|
email.publish_date | Date/time the email is sent. |
email.secondary_id | Email issue number. |
email.subject | Email subject line. |
email_url | Permalink to the email. |
manage_subscription_url | Link to Portal. |
medium | 'email' or 'web'. |
premium_subscribe_url | Upgrade link for free subscribers. |
random_number | Random number for A/B testing. |
subscribe_form | Embedded subscribe form. |
subscribe_url | URL to your subscription page. |
subscriber.can_be_upsold | If subscriber can be upsold to paid. |
subscriber.can_view_premium_content | If subscriber can view premium content. |
subscriber.email | Subscriber's email address. |
subscriber.id | Subscriber's unique ID. |
subscriber.metadata | Subscriber metadata. |
subscriber.subscriber_type | Subscriber type (premium, regular, etc). |
subscriber.tags | Subscriber's tag names. |
unsubscribe_url | Personalized unsubscribe link. |
upgrade_url | Upgrade link for free subscribers. |