go-examples/photoblog/templates/home.html

11 lines
198 B
HTML
Raw Normal View History

{{ 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" }}