CostaCoffe/modules/public/home.py

27 lines
989 B
Python
Raw Normal View History

2024-05-12 02:18:32 +07:00
from mako.template import Template
from config import globalvar
2022-03-16 11:06:52 +07:00
class main:
2024-01-13 12:01:14 +07:00
def __init__(self):
pass
2022-03-16 11:06:52 +07:00
2024-01-13 12:01:14 +07:00
def html(self, params):
2024-06-05 23:27:52 +07:00
return Template(params["mako"]["website"]['index']).render(
2024-01-13 12:01:14 +07:00
title = globalvar.title,
2024-06-05 23:27:52 +07:00
navbar = Template(params["mako"]["website"]['navbar']).render(
2024-11-15 15:02:52 +07:00
title = globalvar.title,
2024-06-05 23:27:52 +07:00
menu = globalvar.menu['public']['navbar'],
2024-01-13 12:01:14 +07:00
user_roles = ["guest"],
active_page = "Home"
),
footer = Template(params["mako"]["website"]['footer']).render(
2024-06-05 23:27:52 +07:00
copyright = globalvar.copyright,
2024-01-13 12:01:14 +07:00
),
container = Template(params["mako"]["website"]['container']).render(
2024-11-15 17:22:44 +07:00
header = "Welcome to CostaCoffe",
sub_header = "Best Place To Buy Coffe",
2024-11-17 16:59:10 +07:00
header_desc = "Experience the rich flavors and aromas of our premium coffee"
2024-01-13 12:01:14 +07:00
)
2022-03-16 11:06:52 +07:00
)