From 686d7ca00ce7f08bf399a0e8a6346ea250bb84de Mon Sep 17 00:00:00 2001 From: Samuel Enocsson Date: Thu, 21 May 2026 15:03:02 +0200 Subject: [PATCH] fix: use template-literal interpolation for KPI strip inside body string (#5) The page body is assembled as a JS template literal inside <% ... %>; EJS tags inside that string break the EJS parser (it sees the first %> as the close of the outer tag). Switch to ${kpis.x} interpolation since we're already inside a backtick string. --- views/pages/index.ejs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/pages/index.ejs b/views/pages/index.ejs index d4c8be0..1c4898b 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -22,15 +22,15 @@
-
<%= kpis.tracked %>
+
${kpis.tracked}
Tracked
-
<%= kpis.active %> active
+
${kpis.active} active
-
<%= kpis.avg ?? '—' %>
+
${kpis.avg ?? '—'}
Avg rating
across active players
@@ -38,7 +38,7 @@
-
<%= kpis.climbing %>
+
${kpis.climbing}
Climbing
this month
@@ -46,7 +46,7 @@
-
<%= kpis.slipping %>
+
${kpis.slipping}
Slipping
this month