12345678910111213141516171819 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title id="page-title">HTMX | Chapter 5 demos</title>
- <script src="js/htmx-1-9-12.min.js"></script>
- <link rel="stylesheet" href="css/styles.css"/>
- </head>
- <body>
- <h1 id="title">Chapter 5 demos</h1>
- <h2>Boost anchor tag</h2>
- <nav hx-get="/autonum/nav" hx-trigger="load"></nav>
- <div id="main">
- <p><a href="/settings" hx-boost="true">Settings</a></p>
- <p>Observe how the title is updated from the settings template, but the rest of the <head> is not.</p>
- </div>
- </body>
- </html>
|