summaryrefslogtreecommitdiff
path: root/src/templates/table.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/table.html')
-rw-r--r--src/templates/table.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/templates/table.html b/src/templates/table.html
new file mode 100644
index 0000000..791c10e
--- /dev/null
+++ b/src/templates/table.html
@@ -0,0 +1,20 @@
+<table class="table">
+ <thead>
+ <tr>
+ {% for header in data[1] %}
+ <th scope="col">{{ header }}</th>
+ {% endfor %}
+ </tr>
+ </thead>
+ <tbody>
+ {% for row in data[0] %}
+ <tr>
+ {% for header in data[1] %}
+ <td>
+ {{ row[header] }}
+ </td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </tbody>
+</table> \ No newline at end of file