refactor: migrate from templ to html/template

This commit is contained in:
2026-05-01 15:46:16 +02:00
committed by Mikkel Elvers
parent e6600e8af4
commit 2c6d28cf01
14 changed files with 261 additions and 1253 deletions

17
templates/base.gohtml Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{template "title" .}} - MAL</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body class="bg-gray-900 text-white">
<header class="p-4">
<h1 class="text-2xl font-bold">MAL</h1>
</header>
<main class="container mx-auto px-4 py-8">
{{template "content" .}}
</main>
</body>
</html>