1.0.12 • Published 4 years ago

mjml-marketo v1.0.12

Weekly downloads
21
License
MIT
Repository
github
Last release
4 years ago

MJML for Marketo

Custom components needed to turn your MJML emails into editable Marketo templates.

Usage

const mjml2html = require("mjml")
const { registerComponent } = require('mjml-core');
const { MarketoContainer, MarketoModule } = require('mjml-marketo');

registerComponent(MarketoContainer)
registerComponent(MarketoModule)

const template = `
<mjml>
    <mj-body>
        <marketo-container id="base">
            <marketo-module id="generalTextRow" mktoName="General Text Row">
                <mj-section>
                    <mj-column>
                        <mj-text>
                            <span id="foobar" mktoName="Text Block" class="mktoText">
                                hello
                            </span>
                        </mj-text>
                    </mj-column>
                </mj-section>
            </marketo-module>
        </marketo-container>
    </mj-body>
</mjml>
`;

const result = mjml2html(template)

console.log(result)
1.0.12

4 years ago

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.7

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