wagtail / wagtail-newsletter

Send email newsletters based on Wagtail content
https://wagtail-newsletter.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Spike: investigate ways to render mail content #4

Closed mgax closed 2 months ago

mgax commented 2 months ago

I've played around with the template rendering for the newsletter and have this experiment working: https://github.com/mgax/newsletter-spike-mailchimp/blob/55a0996acca30938a77aef7c489c66d6b53f6a98/spike/content/models.py#L95-L102.

mgax commented 2 months ago

TODO:

mgax commented 2 months ago

@thibaudcolas I've changed the spike implementation to do the MJML rendering inside the template with an {% mrml %} tag that is a drop-in replacement for django-mjml's {% mjml %} tag: https://github.com/mgax/newsletter-spike-mailchimp/commit/69e3a0c0ebc791f39de2a59219832a214c58b339.