From a7141e39ae4436b9479fc6ca56d1f6500b8ad0a2 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sat, 4 Jul 2026 14:43:06 +0800 Subject: [PATCH] fix: align email wrapper vars to the engine contract; multi-line address via |lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Email context is the established pongo-engine mapping (site_name/site_url/ support_email flat, colors.* camelCase) — the loader renders these through the cms pongoengine, not an ad-hoc snake_case doc. Footer regains per-line address
s via the host 'lines' filter (parity case footer_full now byte-identical; 40/41 static parity, the remaining case is the impossible-input all-colors-empty email edge). Co-Authored-By: Claude Fable 5 --- blocks/footer.ninjatpl | 2 +- templates/email/art-deco.ninjatpl | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/blocks/footer.ninjatpl b/blocks/footer.ninjatpl index 06a5206..31898e5 100644 --- a/blocks/footer.ninjatpl +++ b/blocks/footer.ninjatpl @@ -1,7 +1,7 @@

- {% if address %}
{{ address }}
{% endif %} + {% if address %}
{% for line in address|lines %}
{{ line }}
{% endfor %}
{% endif %} {% if reservationsEmail %}

{{ reservationsEmail }}

{% endif %} {% if menuName %}{% endif %} {% if showSocial != "false" %}
{% endif %} diff --git a/templates/email/art-deco.ninjatpl b/templates/email/art-deco.ninjatpl index 8ad3c74..1dcc89a 100644 --- a/templates/email/art-deco.ninjatpl +++ b/templates/email/art-deco.ninjatpl @@ -14,7 +14,7 @@ - {{ site.name }} + {{ site_name }}