summaryrefslogtreecommitdiff
path: root/php/render.php
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:01:48 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:01:48 -0700
commit1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 (patch)
tree5f1255ab93943e50685d712a6d49b7ca8e2b484b /php/render.php
parent81cabf40f9063f72f04df9b720d7f0e25a185741 (diff)
Add status and more
Diffstat (limited to 'php/render.php')
-rwxr-xr-xphp/render.php8
1 files changed, 6 insertions, 2 deletions
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));
+}
+
?>