Adds footer for website
This commit is contained in:
parent
68f7d612e2
commit
0cba0d886c
3 changed files with 80 additions and 0 deletions
11
src/util.py
Normal file
11
src/util.py
Normal 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())
|
Loading…
Add table
Add a link
Reference in a new issue