mjml-cm

1.0.11 • Public • Published

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:

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

Readme

Keywords

none

Package Sidebar

Install

npm i mjml-cm

Weekly Downloads

6

Version

1.0.11

License

MIT

Unpacked Size

38 kB

Total Files

20

Last publish

Collaborators

  • mblode