costapy/templates/bare/main.py

21 lines
591 B
Python
Raw Normal View History

2023-12-15 16:58:00 +07:00
from core import html
static = [
{
2024-05-12 02:18:32 +07:00
"route" :"/bare/lib/<filepath:re:.*\.(css|sass|css.map|js|js.map)>",
"root" :"./templates/bare/static/lib"
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 = {
2024-05-12 02:18:32 +07:00
"template" : html_template ["template.html" ],
"topnav" : html_template ["topnav.html" ],
"footer" : html_template ["footer.html" ],
2023-11-04 19:12:11 +07:00
"container" : html_page [ page+".html" ]
}
return params_list