diff --git a/template/components/content_table.go b/template/components/content_table.go new file mode 100644 index 0000000..66c7e1f --- /dev/null +++ b/template/components/content_table.go @@ -0,0 +1,17 @@ +package components + +type ContentTable struct { + ID string + AllTH []ContentTableTH + AllTD [][]ContentTableTD +} + +type ContentTableTH struct { + ID string + Value string +} + +type ContentTableTD struct { + ID string + Value string +} diff --git a/template/components/content_table.html b/template/components/content_table.html new file mode 100644 index 0000000..68e34f6 --- /dev/null +++ b/template/components/content_table.html @@ -0,0 +1,12 @@ +{{define "content_table"}} +
{{ $col.Value }} | {{end}} +
---|
{{ .Value }} | {{end}}