This repository contains example templates written in MJML to create mailchimp complient templates.
- NodeJS >= 18.x
- PNPM 7.x
- Recommended: Visual Studio Code Extention for MJML
Execute "pnpm i
" to install the nessesary nodejs modules.
The Eblast template are located in the "/src
-folder". To build all templates execute "pnpm build
". The output of the buildprocess goes to "/.output
".
- use
pnpm dev
to enter MJML watch mode. Template output goes to/.output
- use
pnpm test
to validate your templates - use
pnpm build
to build templates. The output goes to/.output
To preview your changes first start pnpm dev
to build the templates and then execute open .output/[tempalte].html
in a terminal (e.g. open /Users/username/all3dp-eblast-templates/.output/base.html
) to preview changes in your browser.
Templates are based on MJML syntax, see https://mjml.io for details.
basic.mjml
- contains a basic eblast mail template.minimal.mjml
- contains a minimal eblast template with a header and footer.footer-only.mjml
- contains the default footer with Mailchimp templates and default wording.