TableGenerator

The TableGenerator class is responsible for transforming structured data into an HTML table. It does not fetch data from a source; rather, it relies on an adapter to supply table components (header row, body rows, etc.).

TableGenerator is designed to:

  • Accept an adapter that extracts and structures table data.
  • Render the table using the adapter’s output.
  • Allow middleware for modifying table content before rendering.
  • Support flexible table structures, including multiple Tbody elements and an optional Tfoot.

Unlike an adapter, which focuses on structuring raw data, TableGenerator focuses on rendering and presentation.

Source Code
If you find this project useful, consider leaving a on GitHub! Thank you!