我想使用以下在渲染任何页面时调用的方法。如果我在 http.route 中传递 '/' 它将只调用主页而不是其他像 '/shop'、'/blog' 等。还想在 http.route('URL 的基础上传递动态模板渲染作为回报')。
@http.route(['/'], type='http', auth="public", website=True)
def cusotm_controller_func(self, **kwargs):
values= { # values which is passing in template }
return request.render('website.homepage', values)
谁能帮我吗?谢谢。