2023-01-22 00:47:23 +01:00
|
|
|
{{- $htmlTable := .content -}}
|
2023-01-07 23:24:56 +01:00
|
|
|
|
|
|
|
<!-- Tabellenklassen hinzufügen -->
|
2023-01-22 00:47:23 +01:00
|
|
|
{{- $old_tbl := "<table>" -}}
|
|
|
|
{{- $new_tbl := printf "<table class=\"%s\">" .table_class -}}
|
|
|
|
{{- $htmlTable := replace $htmlTable $old_tbl $new_tbl -}}
|
2023-01-07 23:24:56 +01:00
|
|
|
|
|
|
|
<!-- Tabellenkopf hinzufügen -->
|
2023-01-22 00:47:23 +01:00
|
|
|
{{- $old_th := "<thead>" -}}
|
|
|
|
{{- $new_th := printf "<thead class=\"%s\">" .thead_class -}}
|
|
|
|
{{- $htmlTable := replace $htmlTable $old_th $new_th -}}
|
2023-01-07 23:24:56 +01:00
|
|
|
|
2023-01-22 00:47:23 +01:00
|
|
|
<!-- Tabellen-HTML-Code -->
|
|
|
|
{{- $htmlTable | safeHTML -}}
|