melon/config/template.py
Dita Aji Pratama 6a1cf1d167 CostaPy base
2022-08-17 14:09:00 +07:00

18 lines
577 B
Python

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