{{ define "title" }}Untitled{{ end }} {{ define "layout" }} {{ template "title" or "Untitled" }} - {{ .Title }}

{{ .Title }}

Just another web blog.

{{ if .Flash }}
{{ .Flash }}
{{ end }} {{ if .Error }}
Error: {{ .Error }}
{{ end }} {{ template "content" . }}

About

{{ if .LoggedIn }} Hello, {{ .CurrentUser.Username }}.
Log out
{{ if .CurrentUser.Admin }} Admin center {{ end }} {{ else }} Log in {{ end }}

Hello, world!

Elsewhere

{{ end }}