5 ms·
hey there, I'm the creator of htmx, and I really appreciate you making this! very cool!
by recursivedoubts 3y ago
hey there, I'm the creator of htmx, and I really appreciate you making this! very cool!
- bitterblotter 3y agoLikewise man. In the face of avoiding JS, I think we've both taken one for the team here
- thisgoesnowhere 3y agoWait til you find out I'm using htmx with node.
- chatmasta 3y agoWait til he finds out what htmx is built with.
- recursivedoubts 3y agobased
- bitterblotter 3y agoMe when I buy a face mask and immediately ask people to spit in my eyes
- doublerabbit 3y ago> In the face of avoiding JS, I think we've both taken one for the team here In which, you still need to include a JS file. I'd still count that as Javascript.
- rideontime 3y agoPretty clear that they mean "avoid writing javascript," not "avoid executing javascript"
- doublerabbit 3y agoNow that you mentioned it, its clear. However I didn't interpret originally it that way.
- quickthrower2 3y agoThankyou for the awesome library! I have a question. Is there a way to use HTMX with minimal server side changes. Specifically if I have an existing page that you fill in a form and submit and response is of course the entire page. I think it would be cool to tell htmx that the whole page is being returned BUT I only want to update #my-form and that way you don’t need any “if htmx request” kinda stuff on the server. This is for people who care about their site working without JS. But also it allows you to have a single backend endpoint to handle multiple things (for example comments, sign up to email, like button, all in one)
- pondidum 3y agoIf I understood correctly, you can achive this with `hx-target` and `hx-select` - I'm doing this in an app to replace an editor content based on which link is clicked. - https://htmx.org/attributes/hx-select/ https://htmx.org/attributes/hx-select/ - https://htmx.org/attributes/hx-target/ https://htmx.org/attributes/hx-target/
- quickthrower2 3y agoThat could be it! I missed that one. Will try it next time.
- sethammons 3y agoOh that's neat - so you can return more than htmx will use and it can select the element it needs in the response and discard the rest
- joshmanders 3y agoYep, I actually don't even do server side checks in my app I am building, I just hx-boost on my html element and then server side I redirect back to the page that should have the updated content, just like you would a traditional server rendered app, and htmx then swaps out the body, but if I use target and that I can tell it to only return say the `<main>` tag and maybe another part of the page, the rest doesn't change.
- a_c 3y agoHaven’t tried htmx. Have you heard of phoenix liveview? Are they similar concepts?
- recursivedoubts 3y agohtmx is lower level than the various liveview implementations this makes htmx more work, in general, to accomplish things but also less opaque htmx is laser focused on generalizing hypermedia controls in HTML (anchors & forms)
- baranul 3y ago[dead]
- tomberek 3y agoAs a CEO of htmx, I second this appreciation. Well done!