
Functions must be (xml: string) => string Preprocessors applied to the xml before parsing.

Path of file, used for relative paths in mj-includes Option to keep comments in the HTML outputĪvailable values for the validator: 'strict', 'soft', 'skip' You can pass optional options as an object to the mjml2html function: optionĭefault fonts imported in the HTML rendered by MJML Print the responsive HTML generated and MJML errors if any Inside Node.js import mjml2html from 'mjml' See mjml-cli documentation for more information about config options. Watches the changes made to (file or folder)

You can pass optional arguments to the CLI and combine them. Command line interfaceĬompiles the file and outputs the HTML generated in output.html mjml input.mjml -o output.html Sublime Text plugin (MJML needs to be installed separately)įor more tools, check the Community page.Atom plugin (MJML needs to be installed separately).Visual Studio Code plugin (MJML is included).MJML comes with an ecosystem of tools and plugins, check out:
#Mjml alternatives install
Usage Onlineĭon't want to install anything? Use the free online editor! Applications and plugins You can also run yarn build:watch to rebuild the package as you code.

To work on MJML, make changes and create merge requests, download and install yarn for easy development. If you're not sure what those are, head over to Usage for other ways to use MJML. You can install MJML with NPM to use it with NodeJS or the Command Line Interface. MJML’s open-source engine takes care of translating the MJML you wrote into responsive HTML. Its semantic syntax makes the language easy and straightforward while its rich standard components library shortens your development time and lightens your email codebase. MJML is a markup language created by Mailjet and designed to reduce the pain of coding a responsive email. If you're looking for MJML 3.3.X check this branch
