url_for_params
This commit is contained in:
parent
7bff037b78
commit
133b37c490
5 changed files with 57 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% for person in persons %}
|
||||
{% if loop.last %}
|
||||
<li hx-get="/infinite/persons?page={{ next_page }}" hx-trigger="intersect once" hx-target="#persons" hx-swap='beforeend'
|
||||
hx-indicator="#persons-loading"
|
||||
<li hx-get="{{ url_for('infinite', page=next_page) }}" hx-trigger="intersect once" hx-target="#persons"
|
||||
hx-swap='beforeend' hx-indicator="#persons-loading"
|
||||
class="cursor-pointer bg-red-500 hover:bg-red-600 text-white font-bold py-2 px-4 rounded">
|
||||
|
||||
{{ person.name }} -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue