Skip to content

Add mjml component

Compare
Choose a tag to compare
@thetutlage thetutlage released this 09 Jan 07:18
· 8 commits to develop since this release

The mjml component can be used as @mjml tag and it uses the mjml npm package to convert MJML markup to HTML.

You can use it follows inside within the Edge templates.

@mjml()
  <mjml>
    <mj-body>
      <mj-section>
        <mj-column>
          <mj-text>
            Hello World!
          </mj-text>
        </mj-column>
      </mj-section>
    </mj-body>
  </mjml>
@end

The output will be HTML. Just make sure to install mjml package within your application before using the component tag

Commits

  • feat: add mjml component to process mjml markup 3ad4e4b

Full Changelog: v9.0.0...v9.1.0