MJML - Template Interpolation, Dynamic Data, Context
问题 After a lot of searches, I am having difficulties in finding how: MJML handles dynamic data and template interpolations I was expecting something like: import { mjml2html } from 'mjml'; const context = { message: 'Hello World' }; const view = mjml2html(template, context); <mjml> <mj-body> <mj-container> <mj-section> <mj-column> <mj-text>{message}</mj-text> </mj-column> </mj-section> </mj-container> </mj-body> </mjml> 回答1: MJML doesn't handle any templating. If you want templates, use a