Currently if in a template I want t o do:
<a href="{{ url_for("login_get_name") }}"></a>
then in litestar I have to explicitely use the name kwarg in the handler's decorator:
@get("/login", name="login_get_name")
async def login_get_func(
request: Request
) -> Template:
I'd like to be able to do <a href="{{ url_for("login_get_func") }}"></a>
with:
@get("/login")
async def login_get_func(
request: Request
) -> Template:
currently a 500 is raised
litestar.exceptions.http_exceptions.NoRouteMatchFoundException: 500: Route login_get_func can not be found
No response
No response
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too