This example shows you how you can do partial rendering for htmx requests.
The view uses an alternative base template for requests made with htmx.
This base template only renders the <main>
element, saving time and bandwidth.
Paginate through the below list of randomly generated people to see this in action, and study the view and template.
id | name |
---|---|
{{ person.id }} | {{ person.name }} |
No people on this page. |