www/content/_index.md
+++ insert_anchor_links = "heading" +++
<style type="text/css"> .wuw { display:none; } .uwu { display:none; } body.lmao .dark-hero .main { display:none; } body.lmao .dark-hero .wuw { display:block; padding-top: 24px; } body.lmao .dark-hero .uwu { display:none; } body.kawaii .dark-hero .main { display:none; } body.kawaii .dark-hero .wuw { display:none; } body.kawaii .dark-hero .uwu { display:block; padding-top: 24px; } body.ads .ad { display: block; text-align: center; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } body.ads .ad a:hover { opacity: 100%; } body .ad { display: none; } body.ads .ad img { max-width: 90vw; } </style> <script type="application/javascript"> if(window.location.search=="?wuw=true" || window.location.search=="?suw=true") { document.body.classList.add("lmao") } if(window.location.search=="?uwu=true") { document.body.classList.add("kawaii") } if(window.location.search=="?ads=true") { document.body.classList.add("ads") } </script> <div class="ad" style="margin-bottom: 30px"> <a href="https://swag.htmx.org"> </a> </div> <div class="dark-hero full-width" classes="add appear"> <div class="main"> <span class="logo dark"><<span class="blue">/</span>> <span class="no-mobile">htm<span class="blue">x</span></span></span> <sub class="no-mobile"><i>high power tools for HTML</i></sub> </div> <div class="wuw"> <a href="https://swag.htmx.org/products/shut-up-warren-tee"> </a>
</a>
htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext
htmx is small (~16k min.gz'd), dependency-free, extendable & has reduced code base sizes by 67% when compared with react
<h2>motivation</h2><a> & <form> be able to make HTTP requests?click & submit events trigger them?GET & POST methods be available?By removing these constraints, htmx completes HTML as a hypertext
<h2>quick start</h2> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/htmx.min.js"
integrity="sha384-H5SrcfygHmAuTDZphMHqBJLc3FhssKjG7w/CeCpFReSfwBWDTKpkzPP8c+cLsK+V" c
rossorigin="anonymous"></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me
</button>
The hx-post and hx-swap attributes on
this button tell htmx:
"When a user clicks on this button, issue an AJAX request to /clicked, and replace the entire button with the HTML response"
htmx is the successor to intercooler.js
Read the docs introduction for a more in-depth... introduction.
Note that htmx 2.x has dropped IE support. If you require IE support you can use the 1.x code-line, which will be supported in perpetuity.
<h2><a name='book'></a>book</h2>We are happy to announce the release of Hypermedia Systems, a book on how to build Hypermedia-Driven Applications using htmx & more:
<div style="text-align: center;padding: 24px"> <a href="https://www.amazon.com/dp/B0C9S88QV6/ref=sr_1_1?crid=1P0I3GXQK32TN"></a> </div> <h2>sponsors <iframe src="https://github.com/sponsors/bigskysoftware/button" title="Sponsor htmx" height="32" width="114" style="border: 1px solid gray; border-radius: 12px; float:right"></iframe></h2>htmx development can be supported via GitHub Sponsors
Thank you to all our generous <a href="https://github.com/sponsors/bigskysoftware?o=esb">supporters</a>, including:
<style> #sponsor-table td { text-align: center; padding: 16px; min-height: 100px; border-bottom: none; width:33%; } @media only screen and (max-width: 760px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } #sponsor-table td { width:90%; } #sponsor-table td * { margin: auto; } } </style> <div style="overflow-x: auto"> <h1 style="margin-top:32px;text-align:center">Platinum Sponsor</h1> <div style="display: grid;grid-template-columns: 1fr"> <div> <a data-github-account="commspace" href="https://www.commspace.co.za"> </a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>
</a>