2022-03-16 11:06:52 +07:00
|
|
|
from core import html
|
|
|
|
from config import directory
|
|
|
|
|
|
|
|
class main:
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
# Declare a variables
|
|
|
|
self.html_page = html.main.get_html(directory.page)
|
|
|
|
self.html_template = html.main.get_html(directory.template)
|
2023-05-03 23:01:57 +07:00
|
|
|
self.html_email = html.main.get_html(directory.email)
|
2022-03-16 11:06:52 +07:00
|
|
|
|
|
|
|
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 [ page+".html" ]
|
|
|
|
}
|
|
|
|
return params_list
|
2023-05-03 23:01:57 +07:00
|
|
|
|
|
|
|
def verification(self):
|
|
|
|
params_list = {
|
|
|
|
"template" : self.html_email ["verification.html" ]
|
|
|
|
}
|
|
|
|
return params_list
|