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

    mysterious-toddler-20573

    11/25/2020, 6:56 PM
    I want to keep them separate
  • m

    mysterious-toddler-20573

    11/25/2020, 6:56 PM
    a tokenizer and parser gets pretty big
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:57 PM
    Why wouldn't it? Wouldn't this work?
    Copy code
    on whatever alert("Dude, stop") then wait 200ms then js {tellMom()}
  • m

    mysterious-toddler-20573

    11/25/2020, 6:57 PM
    yes, but if that js did something async (e.g.
    setTimeout()
    ) it wouldn't be transparent
  • m

    mysterious-toddler-20573

    11/25/2020, 6:57 PM
    the way that
    wait
    is
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:59 PM
    I see. That makes sense.
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:59 PM
    On HTMX + Hyperscript, yes. I's easy to see them as separate libraries. It probably makes more sense like that. Maybe I'll just push for tightening the bonds between them, so that certain features of each are exposed to the other. My best example right now is the swapping logic. I'd really like to try using that throughout Hyperscript.
  • m

    mysterious-toddler-20573

    11/25/2020, 7:01 PM
    yeah, the right thing there is introducing the right cut points from an events standpoint so that extensions can be implemented entirely in terms of events, at which point hyperscript is as good as anything else
  • g

    gorgeous-ghost-95789

    11/25/2020, 7:02 PM
    Yes. I think I follow you.
  • g

    gorgeous-ghost-95789

    11/25/2020, 7:03 PM
    And, let me know if you'd like another pair of eyes (or hands) on Hyperscript. I'll probably need you to lay the groundwork, but I'm happy to help fill in spaces once they're ready.
  • m

    mysterious-toddler-20573

    11/25/2020, 7:07 PM
    👍
  • m

    mysterious-toddler-20573

    11/25/2020, 7:07 PM
    prob mid-late december
  • g

    gorgeous-ghost-95789

    11/25/2020, 7:08 PM
    For sure. Everyone's swamped with regular life this time of year -- not to mention the COVID, too.
  • f

    future-boots-43048

    11/25/2020, 7:08 PM
    I'm definitely excited about hyperscript.
  • f

    future-boots-43048

    11/25/2020, 7:09 PM
    Embedding little bits of arbitrary functionality as attributes on a tag fits really well with what I'm doing.
  • f

    future-boots-43048

    11/25/2020, 7:10 PM
    The SSE queries work BTW. I can now have a single hx-sse'connect:...' and multiple 'swaps'.
  • g

    gorgeous-ghost-95789

    11/25/2020, 7:11 PM
    @User nice!
  • f

    future-boots-43048

    11/25/2020, 7:11 PM
    Copy code
    with doc:
        with tag.div(data_hx_sse = 'connect:/sub/{query}'.format(
                                                query = '-'.join(list_id))):
            for id_component in list_id:
                tag.div(data_hx_trigger = 'load',
                        data_hx_get = '/req/{id}'.format(id = id_component),
                        data_hx_sse = 'swap:{id}'.format(id = id_component))
  • f

    future-boots-43048

    11/25/2020, 7:12 PM
    I'm probably doing something wrong still ... but good enough for progress.
  • f

    future-boots-43048

    11/25/2020, 7:17 PM
    Now I just got to work out the tailwind CSS magic to lay out the components as I want.
  • m

    mysterious-toddler-20573

    11/27/2020, 11:10 PM
    https://twitter.com/htmx_org/status/1332460535040798720
  • m

    mysterious-toddler-20573

    11/28/2020, 12:37 AM
    https://news.ycombinator.com/news
  • m

    mysterious-toddler-20573

    11/28/2020, 12:38 AM
    htmx 1.0 is up on HN
  • m

    mysterious-toddler-20573

    11/28/2020, 1:03 AM
    this is one of the funniest tweets I've ever read: https://twitter.com/hncynic/status/1332475208570183682
  • g

    gorgeous-airport-54386

    11/28/2020, 1:04 AM
    It's more likely than you think.
  • l

    lively-beach-14291

    11/28/2020, 2:01 AM
    A comment I made: "HTMX encodes server interaction in hypertext rather than in Javascript. For those with intensive back-end logic and only light interface needs, HTMX offers a incremental way to add front-end interactivity without having to take the deep dive into Javascript frameworks. Longer term, the concept of encoding server interaction in hypertext seems rather novel to me. Perhaps this approach may be one of many missing pieces towards an ecosystem of interoperable hypertext-based web components."
  • m

    mysterious-toddler-20573

    11/28/2020, 2:16 AM
    just so @User
  • l

    lively-beach-14291

    11/28/2020, 2:22 AM
    To the HN commenter concerned about
    hx-
    prefix, I refer to RFC 6648, which deprecates
    X-
    for HTTP headers.
  • m

    mysterious-toddler-20573

    11/28/2020, 2:43 AM
    🙂
  • m

    mysterious-toddler-20573

    11/28/2020, 2:44 AM
    Don't spend too much time in the HN comments section. I've already wasted way too much time there today.
1...808182...1146Latest