From 1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sun, 20 Sep 2026 21:01:48 -0700 Subject: Add status and more --- php/render.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'php/render.php') diff --git a/php/render.php b/php/render.php index 902d81b..e4986e2 100755 --- a/php/render.php +++ b/php/render.php @@ -20,13 +20,13 @@ require_once ROOT . '/php/replace.php'; require_once ROOT . '/php/execute.php'; -function render_content(string $page) { +function render_page(string $content) { $device = 'desktop'; $targets = [ '{{stylesheets}}' => import(ROOT . '/html/stylesheets.html'), '{{header}}' => execute(ROOT . '/php/header.php'), - '{{content}}' => import($page), + '{{content}}' => $content, '{{footer}}' => execute(ROOT . '/php/footer.php'), '{{device}}' => $device ]; @@ -36,4 +36,8 @@ function render_content(string $page) { echo $main_html . "\n"; } +function render_content(string $page) { + render_page(import($page)); +} + ?> -- cgit v1.2.3