News for hackers. Stuff that matters.
Re:Ask HN: How do you display HTML tables on any screen size? by andrewfromx on Tuesday July 04, 2023 @07:06PM (#36593647)
Small Table logic:

                {{ $cells := index . "cells" }}
                {{ $headers := index . "headers" }}
                {{ range $j, $c := $cells }}

                {{ range $i, $h := $headers }}
              <tr>
                <th>{{ $h }}</th>
                <td>{{ index $c $i}}</td>
              </tr>
              {{ end }}
              {{ end }}

There are no comments on this comment yet.