AtDhVaAnNkCsE !!!
function showData(result) {
html_table=TABLE(
,THEAD(null,row_display(result["headers"]))
,TBODY(null,map(row_display,result["data"]))
)
replaceChildNodes("div-id",html_table)
}
function row_display(row) {
return TR(null,map(partial(TD,null),row))
}
On the python side, return a
dict(headers=database.cursor.description,
data=database.cursor.fetchall())
Then do requestData(exposed-python-function-name)
Then profit.
-Facus.