Implement shared template layout system
This commit is contained in:
parent
3be7fb76e7
commit
08b669fd8f
9 changed files with 69 additions and 45 deletions
6
internal/server/templates/layout/nav.html
Normal file
6
internal/server/templates/layout/nav.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{define "nav"}}
|
||||
<a href="/orders">All orders</a>
|
||||
<a href="/order">New order</a>
|
||||
<a href="/cakes">All Cakes</a>
|
||||
<a href="/cake">New Cake</a>
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue