1.1.0 • Published 5 years ago

mjml-campaignmonitor v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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:

attributedescriptiondefault value
disable-importingreplace cm_dontimportimage attributefalse
disable-trackingreplace cm_dontconvertlink attributefalse
editablereplace editable attributetrue
placeholderuse an placeholder imagefalse
...any other mj-image attribute