 }}
    {{- if $v }}
      {{- printf " %s=%q" $k $v | safeHTMLAttr }}
    {{- end }}
  {{- end }}>
  <thead>
    {{- range .THead }}
    {{ $length := len . }}
      {{ if $wrap }}
        <tr>
          {{- range . | first (sub $length 1) }}
            <th {{ with .Alignment }}class="text-{{ index $align . }}"{{ end }}>
              {{- .Text -}}
            </th>
          {{- end }}
          {{- range . | last 1 }}
            {{ $header = .Text }}
          {{ end }}
        </tr>
      {{ else }}
 