Data Table

Basic Use #

go-html
{{< data-table delimiter="," headers="1" >}}
Name,Score,Grade
Alice,95,A
Bob,82,B
{{< /data-table >}}
NameScoreGrade
Alice95A
Bob82B

The first row receives table-header styling.

Download the Source #

Set file-name to offer the data as a downloadable file.

go-html
{{< data-table file-name="scores.csv" >}}
Name,Score
Alice,95
Bob,82
{{< /data-table >}}
NameScore
Alice95
Bob82

Useful parameters include delimiter, headers, file-name, align-center, and class.