costapy/templates/basic_bootstrap/main.py

32 lines
915 B
Python
Raw Normal View History

2023-12-15 16:58:00 +07:00
from core import html
from config import directory
static = [
{
'name':'/basic_bootstrap/lib',
'value':{
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/basic_bootstrap/static/lib' ,
}
},
{
'name':'/basic_bootstrap/css',
'value':{
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/basic_bootstrap/static/css' ,
}
}
]
2023-11-04 19:12:11 +07:00
def main(dir, page):
html_template = html.main.get_html("templates/basic_bootstrap/html")
html_page = html.main.get_html(dir)
params_list = {
"template" : html_template ["template.html" ] ,
"topnav" : html_template ["topnav.html" ] ,
"footer" : html_template ["footer.html" ] ,
"container" : html_page [ page+".html" ]
}
return params_list