mjml_preview
Security covered
This module allows converting a node to a MJML template and previewing the HTML generated by MJML from this template.
Features
- Download the MJML template for a node.
- Preview the HTML generated from the MJML template.
Post-Installation
You will need to ask for a MJML API key.
Then browse to /admin/config/services/mjml_preview to set your API credentials.
To write the MJML, you need to create a mjml view mode for your bundle and extend the template of this view mode in your theme.
(The template will need to contain MJML, not HTML.)
You will then have new "Preview MJML" and "Download MJML" tabs on each node.
Additional Requirements
Similar projects
This module does not allow sending MJML from Drupal (see the MJML module for this feature).