{{define "main-content"}}

For each type

types:

inactive

raised

speaker

mark

mark and active

{{ range .Bricks }}
for {{ .Name }}
{{ template "inactiveBrick" .ColorClass }}
{{ template "raisedBrick" .ColorClass }}
{{ template "speakerBrick" .ColorClass }}
{{ template "markBrick" .ColorClass }}
{{ template "markAndRaisedBrick" .ColorClass }}
{{ end }}

Now for BrickData taking parametrized template name

{{ template "brick" .ABrick }}

Now for a person

{{ template "personBlocks" .TestPerson }}

And now i'll want to get all persons for a room

{{ template "roomPeople" .ARoom }}
{{end}}