added and revised templates

This commit is contained in:
2024-10-12 09:06:07 -07:00
parent 7bf2881145
commit 4c6310343d
4 changed files with 51 additions and 4 deletions

View File

@@ -32,11 +32,11 @@ def renderindex(template):
def main():
template = ""
with open("template.html", 'r') as fin:
with open("templates/overview.html", 'r') as fin:
template = fin.read()
renderindex(template)
maps = getmaps("db/cts.db")
with open("template_map.html", 'r') as fin:
with open("templates/map.html", 'r') as fin:
template = fin.read()
# for each map generate an html file.
for game_map in maps: