go-examples/authcookie/templates/home.html

11 lines
198 B
HTML
Raw Permalink Normal View History

2017-07-29 08:37:15 +00:00
{{ template "header.html" }}
<div>
{{ if .username }}
<a href="/logout">Logout</a>
{{ else }}
<a href="/login">Login</a>
{{ end }}
</div>
<h1>Hello {{ .username }}</h1>
{{ template "footer.html" }}