https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • e

    enough-petabyte-50314

    02/24/2023, 6:12 PM
    pretty sure recent node versions make a 0-dep server fairly easy.
  • r

    refined-waiter-90422

    02/24/2023, 6:40 PM
    if you throw up a github page, post it here
  • l

    limited-teacher-83117

    02/24/2023, 6:40 PM
    Oh for sure, I have definitely found my ideological allies
  • e

    enough-petabyte-50314

    02/24/2023, 6:42 PM
    these guys made a 0-dep framework that turns aws lambdas into http Request Response handlers https://www.npmjs.com/package/lambda-api
  • s

    some-airline-73512

    02/24/2023, 8:46 PM
    There are already a bunch of 0-dep libraries. Or almost 0. I use restana server as express replacement, it has 1 dependency I believe.
  • l

    limited-teacher-83117

    02/24/2023, 9:10 PM
    Nice, this is definitely closer to what I pictured than some of the other alternatives that I found
  • p

    prehistoric-soccer-76386

    02/25/2023, 1:44 AM
    Hello, is it possible to work in shadow DOM? I am using
    htmx.process()
    , correctly registering ajax in element in shadow DOM. But after the html response back it seems that the target element in shadow DOM does not change with error console with
    htmx:targetError
    . Thanks for reading!
  • m

    mysterious-toddler-20573

    02/25/2023, 1:52 AM
    Not currently
  • p

    prehistoric-soccer-76386

    02/25/2023, 1:59 AM
    Oh.. I see, Thanks for a quick reply! I think the demand of this feature is quite low. But it will be really helpful for me to handle custom element(web components). Anyway thanks!
  • m

    mysterious-toddler-20573

    02/25/2023, 2:22 AM
    no problem, there is a pull request out for supporting it, but I haven't had time to look at it in detail (it looked scary to me at first, and pretty large)
  • g

    gorgeous-ghost-95789

    02/25/2023, 2:39 AM
    Just catching up to this conversation, sorry. I have made a couple sites w/ hugo, and I'm a big fan of it. It is a lot, but it's worth it in the end. If that gets the green light, I'll certainly join in the fun but I'm too overwhelmed to be the lead 😦
  • m

    mysterious-toddler-20573

    02/25/2023, 4:29 AM
    very nice of you to volunteer to lead!
  • l

    little-kilobyte-16316

    02/25/2023, 4:30 AM
    I have a form with two textboxes and a DropZone file upload. I'm trying to submit the form to my backend in one request. (Textbox values and File), and have my backends response be swapped in to replace the forms wrapper. The submit button has a click event listener, that fires
    dropzone.processQueue()
    to start the upload. The problem I'm facing is that when clicking submit, I have two requests fire, one contains my form data AND the files, and another that just contains the form data. Using
    preventDefault()
    and
    stopPropagation()
    on the submit button, makes the
    hx-post
    not fire at all, just the dropzone upload. Is this expected behavior? I'm not really sure what else I can do here. Does anyone have any ideas?
  • a

    abundant-dog-96915

    02/25/2023, 6:54 AM
    how do you all handle losing an open dropdown box on an element refresh? It seems that the morph extension doesn't cover this?
  • h

    happy-knife-63802

    02/25/2023, 11:06 AM
    Have the drop-down be outside of the element that’s being refreshed?
  • m

    mysterious-toddler-20573

    02/25/2023, 2:14 PM
    can you give us a rough drawing of the situation?
  • m

    mysterious-toddler-20573

    02/25/2023, 2:14 PM
    maybe using excallidraw?
  • g

    gorgeous-airport-54386

    02/25/2023, 3:59 PM
    hx-boost considered harmful
  • o

    orange-umbrella-16693

    02/25/2023, 4:16 PM
    hx-boost my beloved
  • m

    mysterious-toddler-20573

    02/25/2023, 6:33 PM
    The dichotomy of hx-boost
  • e

    enough-petabyte-50314

    02/25/2023, 8:57 PM
    trying to contribute the
    revealed delay
    functionality...it seems I have to have python2 installed in order to do
    npm install
    .. is that expected?
  • m

    mysterious-car-3675

    02/25/2023, 8:59 PM
    if only you could
    pnpm i && pnpm dev
  • e

    enough-petabyte-50314

    02/25/2023, 9:01 PM
    I do like
    pnpm
    πŸ™‚
  • e

    enough-petabyte-50314

    02/25/2023, 9:01 PM
    ah yes... looks like
    sass
    is a dependency... sigh
  • l

    limited-potato-46306

    02/25/2023, 9:02 PM
    Is there any interest for a dev container? This way people can have the same environment, not need to install anything except docker or open htmx in codespaces
  • m

    mysterious-car-3675

    02/25/2023, 9:02 PM
    if only there was a build thing, not called vite, that just handled that with no config
  • e

    enough-petabyte-50314

    02/25/2023, 9:03 PM
    not a bad idea @limited-potato-46306 . I'd prefer to not use sass and use something more lightweight like https://lesscss.org/ (or just css), but that's a different discussion πŸ˜†
  • l

    limited-potato-46306

    02/25/2023, 9:04 PM
    Im not sure how familiar you are with containers, but you can run everything locally and at least in vscode it is 1 click
  • m

    mysterious-car-3675

    02/25/2023, 9:04 PM
    eli5, sass is fine but ts is a bridge too far. πŸ˜› dev containers are great... but if you don't do python and use normal setup i doubt its necessary. still a good idea
  • e

    enough-petabyte-50314

    02/25/2023, 9:05 PM
    wait, what do you mean by containers. I assumed docker, but sounds like something else
1...104710481049...1146Latest