WeSearch

I love MJML — I just didn't want a whole templating engine for two tiny things

·4 min read · 0 reactions · 0 comments · 19 views
#mjml#email#programming
I love MJML — I just didn't want a whole templating engine for two tiny things
TL;DR · WeSearch summary

The author expresses appreciation for MJML, a tool that simplifies the creation of responsive HTML emails. However, they highlight a limitation in MJML regarding the lack of support for variables and translations. To address this, the author developed a preprocessor that integrates these features without the complexity of a full templating engine.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 21797) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Michal Král Posted on May 27 I love MJML — I just didn't want a whole templating engine for two tiny things #mjml #i18n #opensource #javascript I love MJML. Responsive HTML email is one of the genuinely miserable corners of frontend — nested tables, <!--[if mso]> incantations, clients from 2007 that still get a vote.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)