mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add the request parameter to render_template
This allows us to inspect things about the request we're rendering from. * Use render_template(request, ...) in aurweb.routers.auth Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
5d4a5deddf
commit
4423326cec
4 changed files with 12 additions and 6 deletions
|
@ -47,7 +47,7 @@ async def language(request: Request,
|
|||
async def index(request: Request):
|
||||
""" Homepage route. """
|
||||
context = make_context(request, "Home")
|
||||
return render_template("index.html", context)
|
||||
return render_template(request, "index.html", context)
|
||||
|
||||
|
||||
# A route that returns a error 503. For testing purposes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue