News for hackers. Stuff that matters.
Re:Htmx by mhitza on Wednesday December 14, 2022 @03:11PM (#33989628)
I'm gonna make a note on that when I have cycles to burn to experiment with htmx. From my understanding of reading that section, parameters being a container of kv pairs, I'd have to hack on the internals of htmx for it to be able to send a pure string (not form/multipart) as the body of a post/put request.

If I get around of experimenting with that, and it fits my flow, would that be something you'd accept back into the project as a contribution to the code?

Re:Htmx by recursivedoubts on Wednesday December 14, 2022 @03:49PM (#33990324)
i don't think you'd need to hack the internals, you just hook into that event to do what you need:

  htmx.on("htmx:configRequest", function(evt) {
     evt.detail.parameters['my-html'] = evt.target.outerHTML;  // or whatever
  }
you can jump on the discord and we can help you out when the time comes:

https://htmx.org/discord