![]() mjmlconfig file (for custom components use)Īllows to use the config attribute from. You will be able to see how to leverage our Template language and create multifunctional template, similar to the one shown in Passport. Options for html minifier, see mjml-cli documentation for more info This guide will show you how to leverage Mailjet's mark-up language MJML which helps you design responsive emails easily. Displays a horizontal divider that can be customized like a HTML border. Preserve some tags when inlining css, see mjml-cli documentation for more info MJML, short for Mailjet Markup Language, was designed to simplify the process of coding a responsive email. The mj-head section contains all the styles needed for this file. There also other components like , or. An MJML file starts and close with an mjml tag.Functions must be (xml: string) => string Assuming you have a basic knowledge of HTML and CSS, using MJML might. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |