![]() ![]() Head over the Community Slack to meet fellow MJML'ers. MJML wouldn't be as cool without its amazing community. Head over here to learn more about the API. APIĪ free-to-use MJML API is available to make it easy to integrate MJML in your application. This js file needs to export an Object with the same structure as a standard JSON. Note that it's also possible to define preprocessors in your mjmlconfig file. ![]() 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 MJML’s open-source engine generates high quality responsive HTML. Its semantic syntax makes it easy and straightforward and its rich standard components library speeds up your development time and lightens your email codebase. Option to keep comments in the HTML outputĪvailable values for the validator: 'strict', 'soft', 'skip' MJML is a markup language designed to reduce the pain of coding a responsive email. We want to integrate these as content blocks within the drag-drop Marketing Email Builder. You can pass optional options as an object to the mjml2html function: optionĭefault fonts imported in the HTML rendered by HTML MJML content block in drag-drop E-Mail Editor Suggested Answer We are looking forward to using our own E-Mail template, which is based on components build with MJML. 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 |