


I believe that it is a mistake for this project to maintain an unopinionated position about templating. Proident, sunt in culpa qui officia deserunt mollit anim id est laborum.ĥ Templating needs be a first class feature of mjml Overview Duis aute irure dolor in reprehenderit in voluptate velit esseĬillum dolore eu fugiat nulla pariatur. Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoĬonsequat. Tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Work in that case (small texts in columns) : Proin rutrum enim eget magna efficitur, eu semper augue semper. Lorem ipsum dolor sit amet, consectetur adipiscing elit. mjmlconfig fileĢ Columns breaks on some Google Apps account mjmlconfig file (for custom components use)Īllows to use the config attribute from. Options for html minifier, see mjml-cli documentation for more info Preserve some tags when inlining css, see mjml-cli documentation for more info 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 HTML Import mjml2html from 'mjml' /* Compile an mjml string */ const htmlOutput = mjml2html ( ` Hello World! `, options ) /* Print the responsive HTML generated and MJML errors if any */ console.
