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

{{ .Title }}

Just another web blog.

{{ if .SetupNeeded }}
Your web blog needs to be set up! Please click here to configure your blog.
{{ end }} {{ range .Flashes }}
{{ . }}
{{ 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

{{ template "scripts" or "" }} {{ end }}