{{define "content"}} {{$d := .}}
| Month | {{range $cat, $_ := $d.CategoryNames}}{{$cat}} | {{end}}Total |
|---|---|---|
| {{.Month}} | {{range $cat, $_ := $d.CategoryNames}}€{{cents (index $.Totals $cat)}} | {{end}} {{$total := sub 0 0}} {{range $_, $v := .Totals}}{{$total = add $total $v}}{{end}}€{{cents $total}} |