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

9
templates/index.gohtml Normal file
View File

@@ -0,0 +1,9 @@
{{define "title"}}Hello World{{end}}
{{define "content"}}
<h2 class="text-3xl font-bold mb-8 text-center">Hello World</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
{{range .Animes}}
{{template "anime_card" .}}
{{end}}
</div>
{{end}}