Add js and css integration

This commit is contained in:
2026-04-23 15:08:45 +02:00
parent 0ee598fbdd
commit cfa72be700
8 changed files with 1595 additions and 4 deletions
+4
View File
@@ -5,6 +5,10 @@ ob_start();
<h1><?= htmlspecialchars($title) ?></h1>
<p>Willkommen auf meiner Seite!</p>
<p class="text-red-500">I am red.</p>
<button onclick="test('World')">Test</button>
<?php
$content = ob_get_clean();
require __DIR__ . '/layout.php';
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<title><?= htmlspecialchars($title) ?></title>
<link rel="stylesheet" href="/build/app.css">
<script src="/build/app.js" defer></script>
</head>
<body>
<?= $content ?>