This commit is contained in:
lbenedar
2026-03-06 11:34:43 +03:00
parent f252c2c801
commit 6eee11400c
4 changed files with 49 additions and 5 deletions

View File

@@ -1,6 +1,15 @@
{{define "nav"}}
<nav>
<a href='/'>Home</a>
<a href='/snippet/create'>Create snippet</a>
<div>
<a href='/'>Home</a>
<a href='/snippet/create'>Create snippet</a>
</div>
<div>
<a href='/user/signup'>Signup</a>
<a href='/user/login'>Login</a>
<form action='/user/logout' method='POST'>
<button>Logout</button>
</form>
</div>
</nav>
{{end}}