Data Table
• 1 min read
Basic Use #
go-html
{{< data-table delimiter="," headers="1" >}}
Name,Score,Grade
Alice,95,A
Bob,82,B
{{< /data-table >}}| Name | Score | Grade |
|---|---|---|
| Alice | 95 | A |
| Bob | 82 | B |
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 >}}| Name | Score |
|---|---|
| Alice | 95 |
| Bob | 82 |
Useful parameters include
delimiter, headers, file-name, align-center, and class.