martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
396 stars 21 forks source link

Access `Request#query_params` in templates #187

Closed notramo closed 4 months ago

notramo commented 4 months ago

The query_params method should be accessible from templates, e.g.

<input name="search" type="search" value="{{ request.query_params.search }}">
ellmetha commented 4 months ago

Thanks for reporting this! This was fixed already and the fix should be part of the next patch release.