Add Sub Templates
This commit is contained in:
parent
e426c580f5
commit
c9abf3aa88
3 changed files with 20 additions and 0 deletions
9
tmpl/head.tmpl
Normal file
9
tmpl/head.tmpl
Normal 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
7
tmpl/navbar.tmpl
Normal 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
4
tmpl/tail.tmpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{define "tail"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
Loading…
Add table
Reference in a new issue