Adds css and js files

This commit is contained in:
Tutur33
2023-11-05 17:37:42 +01:00
parent 998af22328
commit be54738678
11 changed files with 80 additions and 7 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
def page_html(page):
with open(f'resources/views/{page}.html', 'r') as fichier_html:
with open(f'resources/views/{page}.html', 'r', encoding='utf-8') as fichier_html:
res = fichier_html.read()
return res
def page_css_js(page, type):
with open(f'resources/{type}/{page}.{type}', 'r', encoding='utf-8') as fichier_css_js:
res = fichier_css_js.read()
return res