Skip to content

Instantly share code, notes, and snippets.

@wescpy
Created November 24, 2021 19:27
Show Gist options
  • Save wescpy/ecf84ac51e0396a4c51bec2d9ad5f297 to your computer and use it in GitHub Desktop.
Save wescpy/ecf84ac51e0396a4c51bec2d9ad5f297 to your computer and use it in GitHub Desktop.
Demo app template
<!doctype html>
<html><head><title>Student Information</title><body>
<style>
body {
font-family: Verdana, Helvetica, sans-serif;
background-color: #DDDDDD;
}
table, th, td {
border: 1px solid black;
padding: 4px;
border-collapse: collapse;
}
</style>
<h2>Student Information</h2>
<table>
<tr>
<th>
#
</th>
{% for col in headers %}
<th>
{{ col }}
</th>
{% endfor %}
</tr>
{% for student in students %}
<tr>
<td>
{{ loop.index }}
</td>
{% for col in student %}
<td>
{{ col }}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment