aboutsummaryrefslogtreecommitdiff
path: root/include/layout.php
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-09-22 21:25:49 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-09-22 21:25:49 +0200
commita2827963fbf6847166360be635c65dc85d20dd0d (patch)
tree3904f4a24733c4e097eb4baba4283973e5dabdbd /include/layout.php
parentfb59ea2f57da2abf3c7bd76feddfaf10e109d2f4 (diff)
downloadtraedgaardstomten-a2827963fbf6847166360be635c65dc85d20dd0d.tar.gz
PHP FTW!
Diffstat (limited to 'include/layout.php')
-rw-r--r--include/layout.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/layout.php b/include/layout.php
new file mode 100644
index 0000000..ba79595
--- /dev/null
+++ b/include/layout.php
@@ -0,0 +1,20 @@
+<?php
+
+include "defer.php";
+
+function layout(&$context): void {
+ ?>
+<!DOCTYPE html>
+<html lang="sv">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Trädgårdstomten.se</title>
+ <link rel="stylesheet" href="/style.css">
+ <script src="https://unpkg.com/hyperscript.org@0.9.14" crossorigin="anonymous"
+ integrity="sha384-NzchC8z9HmP/Ed8cheGl9XuSrFSkDNHPiDl+ujbHE0F0I7tWC4rUnwPXP+7IvVZv"></script>
+</head>
+<body>
+ <?php
+ defer($context, function () { echo "</body></html>"; });
+}