npm install mjmlTranspile mjml to html.
mjml index.mjml -o index.htmlTranspile mjml to html in real time. you can edit mjml and open html to see edits in real time.
mjml --watch index.mjml index.htmlmj-include adds mjml inside mjml
<mj-include path="./EmailSignature.mjml" />Following sample uses StringTemplate for string templating (ref).
<mjml>
<mj-head>
<mj-preview>Alert Email</mj-preview>
<mj-title>Alert Email</mj-title>
</mj-head>
<mj-body background-color="#B8CCE2">
<mj-section background-color="#8abfc0">
<mj-column width="100%">
<mj-text font-weight=bolder font-size=25px>
Company Name
</mj-text>
</mj-column>
</mj-section>
<mj-section background-color="#FFFFFF">
<mj-column>
<mj-text><span> Dear <span style="font-weight:bolder;font-size:14px;">$CostControllerName$,</span></span>
</mj-text>
<mj-text>
You have $requestCount$ requests pending.
</mj-text>
</mj-column>
</mj-section>
<mj-section background-color="#FFFFFF">
<mj-column width="55%">
</mj-column>
</mj-section>
<mj-section background-color="#eeeef5">
<mj-column width="40%">
<mj-button border-radius="25px" background-color="#FFD500" color="black" font-weight="bold" href="$SubprojectEntryPageURL$">
TAKE ACTION >
</mj-button>
</mj-column>
<mj-column width="60%">
</mj-column>
</mj-section>
<mj-include path="./EmailSignature.mjml" />
</mj-body>
</mjml>