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

    mysterious-toddler-20573

    10/21/2020, 6:37 PM
    if I'm not crazy
  • m

    mysterious-toddler-20573

    10/21/2020, 6:37 PM
    (no guarnatees)
  • c

    clean-kitchen-15473

    10/21/2020, 6:38 PM
    is there any proper way to use HTMX? like good practices, or as long as it satisfies what im trying to do its alright
  • q

    quaint-accountant-21340

    10/21/2020, 6:55 PM
    @mysterious-toddler-20573 No it's just two simple html pages. I tried to eliminate everything I could and still generate the error. Would it help if I was loading htmx not minified?
  • m

    mysterious-toddler-20573

    10/21/2020, 6:56 PM
    @User it's pretty much in line with the usual way you would use HTML, so do what you like
  • m

    mysterious-toddler-20573

    10/21/2020, 6:56 PM
    @User OK, I'll keep trying to reproduce
  • m

    mysterious-toddler-20573

    10/21/2020, 6:56 PM
    :/
  • q

    quaint-accountant-21340

    10/21/2020, 7:04 PM
    @mysterious-toddler-20573 ok, interesting finding. I downloaded from Github and tried loading directly vs via unpackage. The non-minified version works fine. Switch to the minified version downloaded from Github. Same error. Why the minified version doesn't work I don't know but seems like that would be important.
  • m

    mysterious-toddler-20573

    10/21/2020, 7:08 PM
    yeah, hmmm
  • m

    mysterious-toddler-20573

    10/21/2020, 7:08 PM
    interesting
  • g

    gorgeous-ghost-95789

    10/21/2020, 7:15 PM
    I know I'm late to the party, and this may not fit your use case, but... You might give a try at implementing the select2 using HTMX. Trigger a GET whenever the first select changes, then load a timybfragment containing the second select. Let me know if some example code would help to visualize that. It should be pretty easy.
  • g

    gorgeous-ghost-95789

    10/21/2020, 7:16 PM
    It might feel a little odd, or like overkill, if you have a tiny list of items. But, it would be beneficial for a larger set of data.
  • m

    most-jelly-15242

    10/21/2020, 7:29 PM
    @User That Sprig playground 🤯 Very nicely done.
  • m

    most-jelly-15242

    10/21/2020, 7:48 PM
    btw, I added a couple more examples on the Yoyo demo app https://app.getyoyo.dev/ if anyone is interested: loading states (spinning) functionality and a list with an edit modal. htmx does a wonderful job to make this all just work.
  • m

    mysterious-toddler-20573

    10/21/2020, 10:11 PM
    @User is your presentation going to be online eventually? Would love to watch it.
  • b

    big-airline-13935

    10/22/2020, 6:30 AM
    Yes, will post it here when it is @User.
  • t

    thankful-addition-60522

    10/22/2020, 7:57 AM
    it'd be great to have a component library in htmx style with props delimited by
    :
    instead
  • m

    most-jelly-15242

    10/22/2020, 12:30 PM
    @User Isn't the video the one here https://www.youtube.com/channel/UCVHGu6BBfe_3XyCqYH3JQnQ
  • m

    mysterious-toddler-20573

    10/22/2020, 12:41 PM
    > it'd be great to have a component library in htmx style with props delimited by
    :
    instead @User tell me more, props delimited by
    :
    ?
  • t

    thankful-addition-60522

    10/22/2020, 12:55 PM
    hx:prop
    , come on
  • b

    big-airline-13935

    10/22/2020, 3:52 PM
    @User Yep, didn't even realise it was live!

    https://www.youtube.com/watch?v=iRka12bKQeA&ab_channel=extendsConfâ–¾

  • m

    mysterious-toddler-20573

    10/22/2020, 4:21 PM
    >
    hx:prop
    , come on @User So you want to see stuff like:
    Copy code
    html
      <button hx:get="/foo">...</button>
  • m

    mysterious-toddler-20573

    10/22/2020, 4:21 PM
    ?
  • m

    mysterious-toddler-20573

    10/22/2020, 4:22 PM
    Is that what the cool kids are doing now?
  • t

    thankful-addition-60522

    10/22/2020, 4:22 PM
    pretty much
  • m

    mysterious-toddler-20573

    10/22/2020, 4:22 PM
    vs
    <button hx-get="/foo">...</button>
  • t

    thankful-addition-60522

    10/22/2020, 4:22 PM
    > Is that what the cool kids are doing now? @User cool kids are not swayed by some janky es6+
  • m

    mysterious-toddler-20573

    10/22/2020, 4:22 PM
    ?
  • t

    thankful-addition-60522

    10/22/2020, 4:22 PM
    they stay on es5
  • m

    mysterious-toddler-20573

    10/22/2020, 4:22 PM
    This is attribute syntax, right?
1...585960...1146Latest