00.html 555 B

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