Skip to content

Instantly share code, notes, and snippets.

@nicooprat
Last active June 11, 2020 10:16
Show Gist options
  • Save nicooprat/e17874dbb1866a2365e943fb68d96209 to your computer and use it in GitHub Desktop.
Save nicooprat/e17874dbb1866a2365e943fb68d96209 to your computer and use it in GitHub Desktop.
Example of MJML template with Vue
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-image v-if="image" width="100px" :src="image"></mj-image>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-text :font-size="large ? '20px' : '16px'" color="#F45E43" font-family="helvetica">{{ text }}</mj-text>
<mj-button v-for="action in actions" :key="i" :href="action.href">
{{ action.label }}
</mj-button>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment