Add js and css integration
This commit is contained in:
@@ -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';
|
||||
@@ -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 ?>
|
||||
|
||||
Reference in New Issue
Block a user