{{range $nc := .news}}{{template "news-category" $nc}}{{end}} {{define "news-category"}}{{$.Name}} {{range $n := .News}}{{template "news" $n}}{{end}}{{range $nc := .Children}}{{template "news-category" $nc}}{{end}}{{end}} {{define "news"}}
{{.Title}} {{.Notes}}