<iframe hidden name=htmz onload="..
</code></pre>
I'm somewhat frightened to ask if there's some special voodoo need for leaving off the quotes on htmz...
Very neat use of existing HTML. One thing this highlighted for me is that the MDN docs on the target attribute are incomplete, because I was recently reading them and while they mention that you can target iframes, they didn't actually describe how to do so.
I was reading the docs because I had some thoughts on my own htmx-like take. You've used some of the same attributes I was going to use but slightly differently than how I was going to approach it. Some good food for thought!
I wonder how feasible it is to create htmz / htmx -like lightweight library with the support for React/Vue/Stelve using web components. I agree that 90% of the use-cases you don’t need React but for the last 10%, most of us are stuck with these bloated frameworks. Astro has a similar idea but it’s working as a full framework instead of being a library. Considering the limitations with Astro, I guess the biggest bottleneck is state management.
Comments (242) 68 threads
Earlier commentsI've found this article a handy reference on all the stuff it's safe to leave out
https://meiert.com/en/blog/optional-html/
I was reading the docs because I had some thoughts on my own htmx-like take. You've used some of the same attributes I was going to use but slightly differently than how I was going to approach it. Some good food for thought!
All comments shown.
Couldn't load more comments. Check your connection and try again.