mirror of
https://github.com/arthur-pbty/PyRoute.git
synced 2026-06-05 00:06:21 +02:00
Adds css and js files
This commit is contained in:
+6
-1
@@ -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
|
||||
Reference in New Issue
Block a user