melon/config/template.py

18 lines
577 B
Python
Raw Normal View History

2022-08-17 14:09:00 +07:00
from core import html
from config import directory
class main:
def __init__(self):
self.html_page = html.main.get_html(directory.page )
self.html_template = html.main.get_html(directory.template )
def user(self, page):
params_list = {
"template" : self.html_template ["template.html" ],
"topnav" : self.html_template ["topnav.html" ],
"footer" : self.html_template ["footer.html" ],
"container" : self.html_page [f"{page}.html" ],
}
return params_list