CostaCoffe/config/directory.py

24 lines
467 B
Python
Raw Normal View History

2024-05-12 02:18:32 +07:00
from core import template
2023-12-15 16:58:00 +07:00
2023-11-04 19:12:11 +07:00
page = {
2024-05-12 02:18:32 +07:00
'public' :'pages/public'
2023-11-04 19:12:11 +07:00
}
2024-05-12 02:18:32 +07:00
static = [
2022-03-16 11:06:52 +07:00
{
2024-05-12 02:18:32 +07:00
"route" :"/css/<filepath:re:.*\.(css|sass|css.map)>",
"root" :"./static/css"
2024-11-15 15:02:52 +07:00
},
# add javascript route
{
"route" :"/js/<filepath:re:.*\.(js)>",
"root" :"./static/js"
2024-11-15 17:22:44 +07:00
},
# add image route
{
"route" :"/img/<filepath:re:.*\.(jpg|png|webp)>",
"root" :"./static/img"
2024-05-12 02:18:32 +07:00
}
]
template.add(static, "templates")