From f8a352afcea56e70ad56129e24dddf325162bbf6 Mon Sep 17 00:00:00 2001
From: Ruben
Date: Fri, 6 Feb 2026 18:47:17 +0100
Subject: [PATCH] Add JavaScript support to page templates
Add support for page-specific JavaScript files with cache busting
via MD5 hash. The script is loaded at the end of the body with
defer attribute. The JavaScript file must be named script.js and
located in the same directory as the page content.
---
app/default/templates/base.php | 3 +++
app/helpers.php | 16 ++++++++++++++++
app/rendering.php | 8 ++++++++
app/router.php | 11 ++++++++++-
4 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/app/default/templates/base.php b/app/default/templates/base.php
index ce25bfd..d739dbe 100644
--- a/app/default/templates/base.php
+++ b/app/default/templates/base.php
@@ -54,5 +54,8 @@
+
+
+