Mandrill allows you to attach the mc:hideable
attribute on an element in HTML email, as in
<p mc:edit="section_1" mc:hideable>
Content that I only want to show on some emails.
<a href="http://link.to/do/something">
Because it has a link that only applies sometimes
</a>
</p>
<p mc:edit="section_2">
Variable content that I want to show every time.
</p>
With this example template, using the mc:edit="name"
attribute, I can change the content in "section_2" very easily by editing the "template_content" field via the messages API, as in:
"template_content": [{"name": "section_2", "content": "Some content"}]
Is there a way to hide the content in "section_1"? It seems like this should be easy.