This email template generation tool uses mjml, a framework for creating responsive emails that are widely supported by email clients.
Install the required dependencies using Yarn.
yarn
Start developing and watch for changes.
yarn dev
Lint your code.
yarn lint
For production builds compile minified email templates.
yarn build
Add your new .mjml
email template to the ./src/templates/
directory. Compiled templates can be found as an .html
file in the ./dist/
directory.
Custom components can be added to the ./src/components/
directory. Any new custom components will also need to be added to the ./.mjmlconfig
file. Use the ./dist
path.
3 examples can be found in /components. Each of them introduce new features, so they should be checked in this order: MjBasicComponent, MjImageText, MjLayout.
For more complex examples, have a look at standard MJML components code such as mj-carousel.
A step-by-step tutorial is available here.