0👍
You can use jinja templates to dynamically create a html table.
<body>
<table border="1px solid black" style="width:100%" >
{% for rows in data %}
<tr> # rows will be the amount of tuples in the list
{%for columns in rows %} # iterating over the tuples
<td>
{{ columns }}
</td>
{% endfor %} # ending tuple iteration
{% endfor %} # ending list iteration
</tr>
</table>
Hope this helps!
Source:stackexchange.com