{{define "body"}}

Categories

{{template "flashes" .}}
{{range $category := .categories}} {{template "row-category" $category}} {{end}}
{{end}} {{define "row-category"}} {{if .Parent.Valid }} {{with .Depth}}
{{end}} {{else}}
{{end}} {{.Name}}
{{range $child := .Children}} {{template "row-category" $child}} {{end}} {{end}}