little stash...

This commit is contained in:
2026-04-21 13:43:08 +02:00
parent e3fd36d302
commit 894cc2d3fd
6 changed files with 101 additions and 0 deletions

10
templates/base.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
$title = 'Home';
ob_start();
?>
<h1>Welcome</h1>
<p>This is the homepage.</p>
<?php
$content = ob_get_clean();
require_once __DIR__ . '/layout.php';

11
templates/layout.php Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $title ?? 'Acme' ?></title>
</head>
<body>
<?= $content ?>
</body>
</html>