Works quite well!
Works quite well!
I was able to recreate our purchased template in like 15 minutes, now it’s much easier to edit.
I'm using a workflow of Pug (nice and short syntax to save on keystrokes) -> MJML (via Pug mixins) -> HTML.
MJML has a really nice Visual Studio Code plugin that has live reload on edit, so it's all a super nice locally-hosted way to develop rich text emails.
Happy to answer any questions or share my workflow/code with anyone. Still refining it but it's a nice system and has gotten my time to build and send a newsletter down from many hours to several hours :)
Did MJML add any support for templating engines as part of the rendering process? That didn't seem to be an option when I did the original process so we had a 2 pass solution (MJML -> HTML w/Handlebars -> HTML).
Mustache is used for color/font substitutions and also for text variable (like $recipient_name) substitutions.
So: JSON representation of an email -> HTML+Mustache -> HTML+Mustache (only variables) -> HTML
For (live during email building) previews we skip the last step and show the Mustache syntax.