tablewriter
tablewriter copied to clipboard
Generate HTML table
Would be great to create a html table which as a endpoint associated with it
for example
/employee would give me a simple table with Employees (Firstname, surname, email)
i could generate a more detailed table on
/employee which gives me Employee data (Firstname, Surname, Date of Birth etc..)
Using the same structure as this lib provides and being able to choose text or html output
I set the HTTP response header field Content-Type to "text/plain; charset=utf-8" and return the generated string, which can force the browser to display the table with the format, but in this case The browser cannot display the hyperlink (a tag) normally