Earlier quoted context omitted.
But HTMX is a JS library. Anything done with it is basically done with JS.
Kernel is done with C. Everything is basically done with C. Even JavaScript.
Htmx in a Nutshell
61–70 of 414 posts
Re: Htmx in a Nutshell
#62howdy, I'm the creator of htmx, happy to talk about it
I love the model. I've been writing a golang app with the standard library template system and it works really well. One bit I've found slightly unintuitive is the swap and settled states. Took my a while to animate in a sidebar how I wanted. It was my fault for not groking it faster but perhaps some more examples or guides in that regard could be useful.
and here is a perfect place for you to contribute to the project! :)
Re: Htmx in a Nutshell
#63Earlier quoted context omitted.
hx-post .. what? hx-put .. what? hx-delete .. what? I stopped scrolling as soon as I noticed I have to ask myself what am I posting to this URL? Maybe digging deeper I could find the reference docs explaining in very vague terms where the payload is coming from. But this was supposed to be simple.
https://htmx.org/docs/#parameters Simple doesn't mean "I should be able to intuitively understand this with under a minute of reading"...
Re: Htmx in a Nutshell
#64Earlier quoted context omitted.
I love the model. I've been writing a golang app with the standard library template system and it works really well. One bit I've found slightly unintuitive is the swap and settled states. Took my a while to animate in a sidebar how I wanted. It was my fault for not groking it faster but perhaps some more examples or guides in that regard could be useful.
i agree and here is a perfect place for you to contribute to the project! :)
Re: Htmx in a Nutshell
#65howdy, I'm the creator of htmx, happy to talk about it
Quick question, as it made me curious. Can I send the content that I want to swap to the server itself? Say I want to submit a form to the backend, will it only send form fields or is there a way to send the form html itself?
https://htmx.org/events/#htmx:configRequest
you could jam the outerHTML of the detail.target into the detail.parameters map, maybe based on the presence of an attribute...
Re: Htmx in a Nutshell
#66HTMLX is great and all, but loading it from a CDN is insecure and wrought with problems. Namely, the JS file in question could be hijacked and replaced with a malicious version that can steal data. It's unlikely, but still a plausible scenario. Also: the resource could just 404 and not be available due to work-in-progress scenarios on the CDN side.
I would much rather host it on my own domain that I control.
Re: Htmx in a Nutshell
#672. REST/GraphQL/gRPC API. Often, if you want to open up your API to internal or external users it's a lot easier if the frontend was already written to deal with protobuf or JSON endpoints. Seems like it would be painful to add an API to an htmlx backend.
Is there a good way to address these with htmlx?
Re: Htmx in a Nutshell
#68I am burnt out (but recovering!) with web dev and htmx is what I am using for my project. Django, DRF, Postgres, tailwind and HTMX. I am so tired of all the front end frameworks and all the complexity that gets added. At some point I think you need it and you get returns from it but hearing more people in the industry recognize and talk about how JS everything isn't always the answer gives me hope. I like what HTMX h…
Re: Htmx in a Nutshell
#69Re: Htmx in a Nutshell
#70Earlier quoted context omitted.
i agree and here is a perfect place for you to contribute to the project! :)
Ha. Excellent point! I think I need to understand it better myself before I try to write something about it.
not sure I do now, come to think of it