Helpers for simple data tables. Define how a list of items can be rendered as a table. The definition a list of (column-title, column-value-accessor) pairs.
I find this approach brakes down for all but simple tables, so be ready to rewrite when this 80% case no longer suits.
Given a table definition, render a list of elements as HTML.
titleGroup and valueGroup are used to create columns that stack multiple pairs. For example:
[(titleGroup ["Latitude", "Longitude"] ,valueGroup [.location >> .lat >> toString >> text ,.location >> .lng >> toString >> text])
A table definition looks something like:
[(text "Name", .name >> text) ,(text "Name", .age >> toString >> text)]