Add Sub Templates

This commit is contained in:
Samuel Lorch 2024-05-05 01:28:11 +02:00
parent e426c580f5
commit c9abf3aa88
3 changed files with 20 additions and 0 deletions

9
tmpl/head.tmpl Normal file
View file

@ -0,0 +1,9 @@
{{define "head"}}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/style/style.css">
</head>
<body>
{{template "navbar"}}
{{end}}

7
tmpl/navbar.tmpl Normal file
View file

@ -0,0 +1,7 @@
{{define "navbar"}}
<ul class="navbar">
<li><a href="/">Morffix</a></li>
<li><a href="/libraries">Libraries</a></li>
<li><a href="/tasks">Tasks</a></li>
</ul>
{{end}}

4
tmpl/tail.tmpl Normal file
View file

@ -0,0 +1,4 @@
{{define "tail"}}
</body>
</html>
{{end}}