sighmon / mjml-rails

MJML + ERb/Haml/Slim view template
https://mjml.io
Other
293 stars 64 forks source link

Database template support #120

Open nicolasconnault opened 1 month ago

nicolasconnault commented 1 month ago

We've implemented a MJML email template editor for our users, allowing them to create their own templates. We'd like to use mjml-rails to convert the MJML to HTML, but it seems to only work with files, not a template in string format.

Is that correct? Currently I'm forced to use MRML to process the templates, and it chokes on a lot of simple things like empty tags.

sighmon commented 1 month ago

@nicolasconnault This PR might help you out: https://github.com/sighmon/mjml-rails/pull/100/files#diff-4771e7d7cbd50bc6146808b3d3a9a51ad036cf58dbd30b6d3d2e0f83bdfdabdcR41

Feel free to take it over too. :-)