1.0.11 • Published 4 years ago

mjml-cm v1.0.11

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

mjml-cm 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
  • cm-singleline
  • cm-multiline
  • cm-unsubscribe
  • cm-webversion
  • cm-preferences

Setup

npm install mjml-cm

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>

Usage in .mjmlconfig file

{
  "packages": [
    "node_modules/mjml-campaignmonitor/lib/index.js"
  ]
}
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
1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago