costa-vite-myna/templates/bare/main.py

31 lines
831 B
Python
Raw Normal View History

2023-12-15 16:58:00 +07:00
from core import html
static = [
{
2024-01-13 12:01:14 +07:00
'name':'/bare/lib',
2023-12-15 16:58:00 +07:00
'value':{
'tools.staticdir.on' : True ,
2024-01-13 12:01:14 +07:00
'tools.staticdir.dir' : './templates/bare/static/lib' ,
2023-12-15 16:58:00 +07:00
}
},
{
2024-01-13 12:01:14 +07:00
'name':'/bare/css',
2023-12-15 16:58:00 +07:00
'value':{
'tools.staticdir.on' : True ,
2024-01-13 12:01:14 +07:00
'tools.staticdir.dir' : './templates/bare/static/css' ,
2023-12-15 16:58:00 +07:00
}
}
]
2023-11-04 19:12:11 +07:00
def main(dir, page):
2024-01-13 12:01:14 +07:00
html_template = html.main.get_html("templates/bare/html")
2023-11-04 19:12:11 +07:00
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