MJML + Parcel = ❤️

Avi Goldman avatar
Avi Goldman
MJML + Parcel
MJML + Parcel

Today we are officially launching Parcel's support of MJML! We've combined all the goodness you know and love in Parcel with the power of MJML.


SO impressive 😍 Node hovering, simple custom component syntax with attributes. This is the endgame editor for MJML users

– Maxime Brazeilles, Core Developer of MJML


What is MJML?

If you aren't familiar with MJML it is an absolutely brilliant markup language for email made by our friends at Mailjet.

You can write something straightforward like this:

<mjml>
<mj-head></mj-head>
<mj-body>
<mj-section>
<mj-column>
<mj-text> hello world </mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>

And end up with with 106 lines of HTML ready to send to all major email clients.

Parcel + MJML

Let's dive into how Parcel and MJML work together!

Emmet, autocomplete + hover

Parcel includes full Emmet support for MJML as well as hover information and autocomplete of the MJML components and attributes.

MJML autocomplete demo

MJML / CSS / HTML validation

Every time you make a change Parcel validates the MJML, CSS, and HTML in the email right inline in your code!

MJML validation demo

Inspect Element + Focus Mode

Even MJML emails can get long and hard to navigate. Inspect element allows you to click anywhere on the preview and jump right to that spot in the code. Focus mode keeps the preview scrolled right to where you are editing and outlines the related MJML component.

MJML inspect element demo

Components

We are a big fan of avoiding copy and paste. Parcel components makes that super doable! You can create components with just a few lines of code and absolutely no JavaScript required.

MJML custom components demo

Transformers

At the end of the day, you might want to make a few modifications to your email. You can minify your code, add UTM parameters, and much more with the flick of a few switches.

MJML transformers demo

Sending tests and exporting

What would an email creation tool be without sending tests? Just two clicks to fire off a test email to your inbox! Another two clicks and you'll have the original MJML file and the outputted HTML saved to your local system!

MJML send test demo

We are really proud of the coding experience we've created for MJML and we know it will help you create amazing emails, even faster!



Happy sending,

Avi Goldman
Founder