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

    thankful-addition-60522

    10/22/2020, 4:23 PM
    property/attribute syntax, yes
  • t

    thankful-addition-60522

    10/22/2020, 4:23 PM
    at least it's better than ruby/rails'
    @prop
  • m

    mysterious-toddler-20573

    10/22/2020, 4:23 PM
    https://github.com/alpinejs/alpine/#x-model
  • m

    mysterious-toddler-20573

    10/22/2020, 4:23 PM
    alpine is still using kebab attributes
  • t

    thankful-addition-60522

    10/22/2020, 4:23 PM
    no, alpine blows
  • m

    mysterious-toddler-20573

    10/22/2020, 4:23 PM
    lol, OK
  • m

    mysterious-toddler-20573

    10/22/2020, 4:23 PM
    well, I don't feel too strongly about it, how do others feel?
  • m

    mysterious-toddler-20573

    10/22/2020, 4:24 PM
    let me look at the code and see how hard it would be to generalize
  • t

    thankful-addition-60522

    10/22/2020, 4:24 PM
    i mean, it'd be great if it could do some normal
    <components/>
    , you know
    <not-retarded>ones</not-retarded>
  • t

    thankful-addition-60522

    10/22/2020, 4:29 PM
    and i'm not even mentioning single file components
  • m

    mysterious-toddler-20573

    10/22/2020, 4:53 PM
    OK, so not terrible to add delimiter support, but I'm gonna need to hear from more than one random dude on discord
  • t

    thankful-addition-60522

    10/22/2020, 5:09 PM
    you have 20 more random people
  • m

    mysterious-toddler-20573

    10/22/2020, 5:11 PM
    let's hear it folks
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:46 PM
    This conversation has been very fun to catch up on. But, I'm not sure what the purpose would be. Are you saying that you'd rather we switch from
    hx-get
    to
    hx:get
    ? If so, why? What do we gain from that?
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:47 PM
    And honestly, I'm just a random dude on Discord, too. But, text conversations make it hard to decipher people's tone. And @User right now, from your tone, it sort of sounds like you're trolling us.
  • t

    thankful-addition-60522

    10/22/2020, 5:48 PM
    wrong, i have absolutely no tone here
  • t

    thankful-addition-60522

    10/22/2020, 5:48 PM
    my messages are very dry
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:49 PM
    With that said, reusable "components" are awesome, and I agree that if we can help to implement them in HTMX, it would be a win. So, let's focus on the features. What would "components" look like?
  • t

    thankful-addition-60522

    10/22/2020, 5:49 PM
    see riot
  • t

    thankful-addition-60522

    10/22/2020, 5:49 PM
    https://github.com/riot/examples/tree/gh-pages/timer
  • t

    thankful-addition-60522

    10/22/2020, 5:49 PM
    *.riot
    specifically
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:50 PM
    Yeah, cool. Thanks 🙂 I'm familiar with web components in general (Angular, unfortunately) and have poked around with Riot.
  • t

    thankful-addition-60522

    10/22/2020, 5:50 PM
    riot can do
    <this/>
  • t

    thankful-addition-60522

    10/22/2020, 5:50 PM
    your average web components can't
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:51 PM
    I do think it would be cool to be able to pull Javascript state in to HTMX interactions. I was just catching up on the documentation so that I don't embarrass myself 🙂
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:51 PM
    HTMX has
    hx-include
    that hints at this capability. Perhaps this is something that could be expanded/enhanced?
  • t

    thankful-addition-60522

    10/22/2020, 5:51 PM
    also, i'd use components separately without dragging the whole htmx
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:53 PM
    This came up in one of the examples I commented on, earlier. It was something about two related select statements. I really wished I could do something like this
    <select hx-get="/sub-options?parentId={this.value}" hx-trigger="change">...</select>
  • g

    gorgeous-ghost-95789

    10/22/2020, 5:54 PM
    @thankful-addition-60522 - yes. Or, being able to use/re-use a static HTML file that didn't depend on the users state, so much. I think that's what my code snippet above is hinting at. Yes?
  • t

    thankful-addition-60522

    10/22/2020, 5:54 PM
    maybe, but i'd use mustache syntax for interpolated vars
1...596061...1146Latest