These are chat archives for gin-gonic/gin

13th
May 2016
Nick Robinson
@nickrobinson
May 13 2016 13:40
Anyone have an example of using templates to render an array. I would like to render an array of values in an HTML table.
Thomas Boerger
@tboerger
May 13 2016 13:51
@nickrobinson {{ range $key, $value := . }} <li><strong>{{ $key }}</strong>: {{ $value }}</li> {{ end }}
Nick Robinson
@nickrobinson
May 13 2016 14:13
@tboerger Thanks! Worked like a charm.
Thomas Boerger
@tboerger
May 13 2016 14:30
yw