refactor: migrate from templ to html/template
This commit is contained in:
17
templates/base.gohtml
Normal file
17
templates/base.gohtml
Normal 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>
|
||||
Reference in New Issue
Block a user