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

    cuddly-raincoat-38596

    06/28/2022, 1:01 PM
    not really elegant
  • c

    cuddly-raincoat-38596

    06/28/2022, 1:02 PM
    very unlikely the correct way of doing things
  • a

    ancient-father-3063

    06/28/2022, 1:17 PM
    yeah my next step was just going to be either use hyperscript or just build the forms myself. Probably the latter. But first I'll try that dev branch.
  • m

    mysterious-toddler-20573

    06/28/2022, 1:24 PM
    dev branch will work guaranteed
  • m

    mysterious-toddler-20573

    06/28/2022, 1:24 PM
    my code never has bugs in it, ask anyone
  • m

    mysterious-toddler-20573

    06/28/2022, 1:25 PM
    htmx 2.0 (mid 2023) initial brainstorm: https://gist.github.com/1cg/f1a6d44c34195c4b6b30df864cf3dcef
    g
    r
    +3
    • 6
    • 42
  • g

    gorgeous-airport-54386

    06/28/2022, 1:26 PM
    hx-bequeath="hx-ext hx-target"
  • p

    powerful-helmet-42757

    06/28/2022, 1:49 PM
    Good Morning (or whatever) - I am under the impression that using
    hx-boost
    does not update
    <link>
    tags in the
    <head>
    . I'm I right? And is there a config I might have missed to choose what to update in the head?
  • m

    mysterious-toddler-20573

    06/28/2022, 2:00 PM
    correct, boosted links only update the body
  • p

    powerful-helmet-42757

    06/28/2022, 2:01 PM
    But it still update some tags in the head, like
    title
    and other `meta`s
  • m

    mysterious-toddler-20573

    06/28/2022, 2:01 PM
    title only
  • p

    powerful-helmet-42757

    06/28/2022, 2:01 PM
    oh
  • m

    mysterious-toddler-20573

    06/28/2022, 2:01 PM
    turbolinks does more elaborate updates of
    head
    from what I remember, I will add it to the list to look at for 2.0
  • p

    powerful-helmet-42757

    06/28/2022, 2:02 PM
    Cool. With what I have in mind, I kind of need a full diff.
  • m

    mysterious-toddler-20573

    06/28/2022, 2:02 PM
    i'd take a look at turbolinks
  • p

    powerful-helmet-42757

    06/28/2022, 2:03 PM
    Yeah, Ive played around a bit with their stuff a couple months back.
  • m

    mysterious-toddler-20573

    06/28/2022, 2:03 PM
    you should be able to use turbolinks/turbo and still use htmx for more fine grained stuff if you want
  • m

    mysterious-toddler-20573

    06/28/2022, 2:03 PM
    but it's a fine solution
  • m

    mysterious-toddler-20573

    06/28/2022, 2:03 PM
    boosting was kind of an afterthought for htmx and intercooler, and has become more important as people use it, so I need to put some time into the feature for 2.0
  • p

    powerful-helmet-42757

    06/28/2022, 2:04 PM
    Thanks šŸ™‚
  • a

    ancient-father-3063

    06/28/2022, 2:09 PM
    @mysterious-toddler-20573 wow, target = next td works!
  • a

    ancient-father-3063

    06/28/2022, 2:09 PM
    thanks for that
  • m

    mysterious-toddler-20573

    06/28/2022, 2:09 PM
    never in doubt!
  • m

    mysterious-toddler-20573

    06/28/2022, 2:09 PM
    šŸ˜…
  • a

    ancient-father-3063

    06/28/2022, 2:15 PM
    Copy code
    html
    <select>
      <option value="?">--------</option>
      {% for flavor in listofflavors %}
      <option value="{{ flavor.id }}">{{ flavor.name }}</option>
      {% endfor %}
    </select>
  • a

    ancient-father-3063

    06/28/2022, 2:16 PM
    it was weird, I had to wrap what the htmx returned in
  • a

    ancient-father-3063

    06/28/2022, 2:16 PM
    before I didn't have to do that when I targted the id directly by name
  • a

    ancient-father-3063

    06/28/2022, 2:16 PM
    but easy fix, and it works
  • h

    hundreds-camera-24900

    06/28/2022, 2:53 PM
    https://deno.com/blog/fresh-is-stable
  • h

    hundreds-camera-24900

    06/28/2022, 2:54 PM
    https://jasonformat.com/islands-architecture/
1...726727728...1146Latest