I made it easier to define #HTMX templates in my #SpringFunk HTMX library: https://wakingrufus.github.io/spring-funk/htmx.html#templates
"Stability as a feature". Hell yes. After decades navigating the relentless churn of front-end technologies - more of this please. #htmx
New Kitten Release
• Fix: morph attributes¹ now support interpolated values.
Enjoy!
¹ The morph attribute is Kitten’s shorthand for the hx-swap-oob attribute of htmx, which Kitten uses – and extends – under the hood. To learn more about it, see Kitten’s Streaming HTML tutorial: https://kitten.small-web.org/tutorials/streaming-html/
6 new chapters are out for the “ #ASPNET Core Reimagined with #htmx” book!
#Hyperscript for smarter UI logic
Navigation with hx-push-url and hx-replace-url
Forms and modal forms that work
Tabs and accordions made simple
Dynamic lists and tables
Buttons and action links done right
Go + HTMX starter kit
https://github.com/carsonkrueger/go-htmx-starter
Discussions: https://discu.eu/q/https://github.com/carsonkrueger/go-htmx-starter
@beeb Well. Server side rendering #HTML has been the default for major projects for a long time, and although every approach has its drawbacks, I cannot get the excitement for JavaScript frameworks that struggle to achieve what you can with templating in the backend. #JavaScript is a blight on the web and I applaud #HTMX for trying to get it out of the way. Why would you want to use JavaScript and JSON to generate HTML when you can just receive HTML?
I really don't understand the enthusiasm around #htmx. Why would anyone want to put html and css classes in their backend code? It probably works for tiny projects but can you imagine a large company doing that? Oh the frontend team needs this button bigger? Better ask the backend team to change their API! That kind of coupling seems very unergonomic. Just my two cents... #webdev #html #backend
Because I do a fair amount of frontend work but think most frontend frameworks are overkill, I use #HTMX and #alpinejs a lot. And @glyph's #NBPy talk made me think about what a #PyScript package that combines both and provides #python handles to both would look like.
What could I build if I had a drop-in #django package that gave me all the interaction I wanted while writing python code?
I have been working towards a #Django starter template that solves a lot of my problems. Figured I would share ;)
This template focuses on the frontend and includes things like #HTMX #DjangoChannels #Playwright and a few more of my favorite tools.
Great question by @tut_tuuut at #DjangoConEurope about #htmx and CSP. We’ve spent lots of time with @wagtail working on CSP compatibility. Had to rule out Alpine.js altogether. htmx with concessions
New blog post:
An Auto-Update Partial Updater with Alpine.js and HTMX
How I built a simple update control which uses HTMX and Alpine to call to an ASP.NET Core action to update an element at regular intervals.
https://www.mostlylucid.net/blog/autorefreshwithalpineandhtmx
#htmx #AlpineJS #aspnetcore
@poppacalypse it extends html with additional html tags (like hx-post and hx-target) that will let the htmx Javascript library know you want to do a certain POST request. And the response should be loaded in the specifiek target (eg. A div box by id).
So any element can therefor trigger a http request. And any kind of element within the same html page can be used as a target to update that section. Instead of updating the whole document/page.
I hope this is clear?
Thank you Lucas Pires for a solid case for #htmx at DjangoCon Europe 2025 ️ The potential is clear for Wagtail sites as well! #DjangoConEurope
I am working on adding a module to #SpringFunk that seamlessly integrates #HTMX, the #Kotlin HTML DSL and #SpringBoot https://wakingrufus.github.io/spring-funk/htmx.html
It is in a very early stage right now, but I think this idea has some potential.