html
html copied to clipboard
HTML table from CSV
Can we have a way to make tables from CSV file?
Like an attribute to table element or some built in methods in JS
@esdnm I suggest creating a web-component this can be done with custom element like <csv-table src="./path/to/csv/file.csv" />
, using javascript to fetch the file, then parse the csv (using a client-side library), then creating the necessary table elements via javascript.
that's an easy answer, but think about how nice it would be if it was built-in. Or like JSON, parser a CSV parser API having to HTMLTable method