Emails 0.5.2: Exported order emails keep their item tables
Emails 0.5.2 makes mix phoenix_kit_emails.templates.export keep billing’s item tables working in exported templates. Without it, an exported order email could show the table’s HTML as plain text.
From phoenix_kit_templates 0.2.0, {{var}} in the HTML part of a file template is escaped. Billing hands over its line items as ready-made HTML, so in an exported file that table would appear as visible markup. The export now writes those variables with three braces, {{{line_items_html}}}, when the installed phoenix_kit_templates is 0.2.0 or later, and lists each file it changed. On an older version it writes the file unchanged and warns you to make the change after upgrading PhoenixKit to 2.40 or later.
A re-run checks files it skipped against what is on disk, so it does not repeat a warning that no longer applies. Other {{..._html}} variables it does not know are flagged for you to check.
Full release notes: Emails 0.5.2
0.5.2 · 1 October 2026
Added
- Template export writes raw-HTML variables as
{{{var}}}(PR #41).phoenix_kit_templates0.2.0 escapes{{var}}in thehtmlpart, so billing’s pre-renderedline_items_htmlwould render as visible markup in an exported override file.mix phoenix_kit_emails.templates.exportnow rewrites the names on the newTemplate.raw_html_variables/0list to triple braces when the loadedphoenix_kit_templatesis >= 0.2.0, and reports each file it touched. On an olderphoenix_kit_templatesthe file is written unchanged with a warning to make the edit once core is upgraded to >= 2.40. Skipped (already existing) files are re-checked against what is on disk, so a re-run does not repeat a warning that no longer applies. Unrecognised{{..._html}}placeholders are flagged rather than silently passed.
Fixed
core_pin_conformance_testrequired the:phoenix_kitpin to admit core 2.0.x/2.1, contradicting the deliberate>= 2.21.3floor; it now guards the floor and an open upper end.
Emails 0.5.2. Install or update: {:phoenix_kit_emails, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.