Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

wladpaiva/mjml-campaignmonitor

Repository files navigation

mjml-campaignmonitor for MJML

This project is intent to provide support for the Campaign Monitor custom tags on the MJML.

List of components:

  • cm-repeater
  • cm-layout
  • cm-image

Setup

yarn add mjml-campaignmonitor

Usage

<mjml>
  <mj-body>
    <cm-repeater>
      <cm-layout label="test">
        <mj-section>
          <mj-column>
            <cm-image width="100px" src="https://via.placeholder.com/100x100" />
          </mj-column>
        </mj-section>
      </cm-layout>
    </cm-repeater>
  </mj-body>
</mjml>
Documentation

All components have the same attributes as the campaign monitor document describe.

cm-image:

attribute description default value
disable-importing replace cm_dontimportimage attribute false
disable-tracking replace cm_dontconvertlink attribute false
editable replace editable attribute true
placeholder use an placeholder image false
...any other mj-image attribute

About

Campaign Monitor compatible MJML v4 components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published