4 ms·
Big Table logic: {{ $headers := index . "headers" }} {{ range $i, $h := $headers }} <th>{{ $h }}</th>
by andrewfromx 3y ago
Big Table logic:
{{ $headers := index . "headers" }}
{{ range $i, $h := $headers }}
<th>{{ $h }}</th>
{{ end }}
{{ $cells := index . "cells" }}
{{ range $i, $c := $cells }}
<tr>
{{ range $j, $cell := $c }}
<td>
{{ $cell }}
</td>
{{ end }}
</tr>
{{ end }}