idk anymore! please put the dog down (me)!

This commit is contained in:
2026-04-19 19:22:38 +02:00
commit b6a258b3cf
16 changed files with 324 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
use src\ViewModels\HomeData;
return function(HomeData $data) { ?>
<!DOCTYPE html>
<html>
<head>
<title><?= htmlspecialchars($data->pageTitle) ?></title>
</head>
<body>
<h1><?= htmlspecialchars($data->pageTitle) ?></h1>
<?php foreach ($data->posts as $post): ?>
<h2><?= htmlspecialchars($post['title']) ?></h2>
<p><?= htmlspecialchars($post['body']) ?></p>
<?php endforeach; ?>
</body>
</html>
<?php }; ?>