Adds footer for website

This commit is contained in:
procrastimax 2023-06-21 18:56:22 +02:00
parent 68f7d612e2
commit 0cba0d886c
3 changed files with 80 additions and 0 deletions

11
src/util.py Normal file
View file

@ -0,0 +1,11 @@
import os
import sys
def load_html_str_from_file(file_name: str) -> str:
if not os.path.isfile(file_name):
print(f"HTML File {file_name} does not exist!")
sys.exit(1)
with open(file_name, "r") as f:
return str(f.read())