Skip to content

MJML 4 packaged for being used in browser (packaged by webpack)

Notifications You must be signed in to change notification settings

bures/mjml4-in-browser

Repository files navigation

MJML 4 in browser (ES5)

This module packages MJML 4 (https://github.com/mjmlio/mjml) to run in browser.

It works by mocking some nodejs modules that are not available in a browser. This means several limitations, such as:

  • mj-include is not supported
  • and possibly many more

Nevertheless for the simple use in a webbrowser this works fine.

Usage example:

import mjml2html from "mjml4-in-browser";
const mjml = ...
const result = mjml2html(mjml);

About

MJML 4 packaged for being used in browser (packaged by webpack)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published