From 5d6f1f42eec48ae1671e54cdd127f39318416498 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 10 May 2026 17:54:45 +0100 Subject: Generate renderer functions using TH These take (and project from) a data type instead of hash maps, _and_ use text-builder-linear, _and_ have the full template inlined. The result is that this is the fastest renderer yet. --- pages/calendar-day.mustache | 4 ++-- pages/log.mustache | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'pages') diff --git a/pages/calendar-day.mustache b/pages/calendar-day.mustache index 9df9998..f3a1895 100644 --- a/pages/calendar-day.mustache +++ b/pages/calendar-day.mustache @@ -21,8 +21,8 @@ {{#events}} {{&time}} - {{#nickwrap1}}{{&.}}{{/nickwrap1}}{{&nickE}}{{#nickwrap2}}{{&.}}{{/nickwrap2}} - {{&messageE}} + {{#nickwrap1}}{{&.}}{{/nickwrap1}}{{nick}}{{#nickwrap2}}{{&.}}{{/nickwrap2}} + {{message}} {{/events}} diff --git a/pages/log.mustache b/pages/log.mustache index c07eb20..3d91a2a 100644 --- a/pages/log.mustache +++ b/pages/log.mustache @@ -19,8 +19,8 @@

Logs: {{network}}/{{channel}}

{{#picker}} - {{#prevpage}}{{/prevpage}}{{^prevpage}}{{/prevpage}}←Prev  - {{#nextpage}}{{/nextpage}}{{^nextpage}}{{/nextpage}}Next→ + {{#prevpage}}{{/prevpage}}{{^prevpage}}{{/prevpage}}←Prev  + {{#nextpage}}{{/nextpage}}{{^nextpage}}{{/nextpage}}Next→
Page {{#firstpage}} @@ -51,15 +51,15 @@ {{#events}} {{&datetime}} - {{#nickwrap1}}{{&nickwrap1}}{{/nickwrap1}}{{&nickE}}{{#nickwrap2}}{{&nickwrap2}}{{/nickwrap2}} - {{&messageE}} + {{#nickwrap1}}{{&.}}{{/nickwrap1}}{{nick}}{{#nickwrap2}}{{&.}}{{/nickwrap2}} + {{message}} {{/events}}