useplunk / plunk

The Open-Source Email Platform
https://www.useplunk.com
GNU Affero General Public License v3.0
2.93k stars 136 forks source link

MJML Templating Support #42

Open danielloader opened 2 months ago

danielloader commented 2 months ago

Hey! Just stumbled on this project and thought I'd get in early and ask for https://mjml.io/ support in addition to react email/jsx email support.

This is purely self interest as I already have MJML templates to use and porting it all to a react flavour would be a reasonable amount of effort.

Thanks

driaug commented 2 months ago

Hey!

Plunk also does not have direct support for JSX Email/React Email. You compile those templates into HTML which you can give to Plunk, you do the exact same with MJML so it is fully compatible!

danielloader commented 2 months ago

Ah okay, I know there's an implementation of MJML for the browser, by default it's a node/backend library usually exposed via express etc so figured I'd ask if that would be worth embedding for server side rendering down to HTML.

If not it's fine I can make it work, just means hosting another container in a compose stack.

Edit: For additional context and to give it a user story; we're a golang primary backend organisation so dipping into some JS to render html from microservices that want to send email is a little less appealing.