Welcome!

This website demonstrates seamless routing using htmx. It supports responses as fragments and full pages. It reads hx-request from the headers of the request to decide whether to send a fragment or a full page.

For example, if you go to: /heroes, only the router content changes – this div with the text you're reading now. The header and the footer stay the same. Take a look at the network responses.

To make things more interesting, there's a sub-router inside the hero page.

For example, going to: /kelthuzad/talents will auto-select the talents tab. If you change the tab and refresh the page, the full page will be sent back with the correct tab selected.

Made with Htmx, Rust, Axum, Maud, and Bootstrap by Iggy Zuk

© 2024 The Internet