I love MJML — I just didn't want a whole templating engine for two tiny things
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.
- ▪MJML allows for the creation of semantic components that compile into email HTML.
- ▪The author needed to incorporate variables and translations into their email templates, which MJML does not support.
- ▪They created a preprocessor called @checkthiscloud/mjml-i18n to handle these requirements without introducing a full templating engine.
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).