MJML
AI-generatedOverview
This node converts MJML markup into HTML. It is useful in scenarios where users want to transform MJML email templates or markup into standard HTML for rendering or sending emails. For example, a user can input MJML code and get the corresponding HTML output to embed in an email campaign.
Use Case Examples
- Convert MJML email templates to HTML for email sending platforms.
- Transform MJML markup stored in data properties into HTML for web display.
Properties
| Name | Meaning |
|---|---|
| Property Name | The name of the property where the converted HTML will be written. Supports dot-notation to specify nested properties, e.g., 'data.person[0].name'. |
| MJML | The MJML markup string to convert into HTML. |
Output
JSON
json- The JSON data of the input item, with the specified property updated to contain the converted HTML.
Dependencies
- mjml library for MJML to HTML conversion
- lodash.set for setting nested properties in JSON objects
Troubleshooting
- If the MJML markup is invalid, the node will throw an error unless 'Continue On Fail' is enabled, in which case it outputs the error with the original data.
- Errors related to invalid property names or dot-notation paths may occur if the 'Property Name' is incorrectly specified.
Links
- MJML Official Website - Official site for MJML markup language and documentation.