
mjmlconfig file in the current working directory, if any mjmlconfig file in the specified path or directory to include custom components Options for html minifier, see mjml-cli documentation for more info Option to keep comments in the HTML outputĪvailable values for the validator: 'strict', 'soft', 'skip'įull path of the specified file to use when resolving paths from mj-include components 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' /* Validation level: 'strict', 'soft' or 'skip' Mjml eMjmlConfigOptionsĪllows to use the config attribute from.

Optional setting when inlining css, see mjml-cli documentation for more infoĪ free-to-use MJML API is available to make it easy to integrate MJML in your application.

The body of your email, represented by the mj-body tag contains the entire content of your document:įrom here, you can first define your sections: Like a regular HTML template, we can split this one into different parts to fit in a grid. Inside any section, there should be columns (even if you need only one column).
