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

    mysterious-toddler-20573

    07/18/2022, 11:20 PM
    #924101955746431026
  • w

    witty-garage-37227

    07/18/2022, 11:22 PM
    https://alpinejs.dev/essentials/installation
  • r

    refined-waiter-90422

    07/18/2022, 11:22 PM
    Possible to be a bit more specific as to how it's out of date? I don't think hotwire would be so brash to just deprecate their entire api 😆
  • r

    refined-waiter-90422

    07/18/2022, 11:24 PM
    That guide went up maybe 2 months ago
  • m

    mysterious-toddler-20573

    07/18/2022, 11:25 PM
    mm, I don't think htmx needs a start()? But depending on how it is loaded, you might need to call https://htmx.org/api/#process on the body of the document.
  • w

    witty-garage-37227

    07/18/2022, 11:28 PM
    if you do
    Copy code
    javascript
    import htmx.org;
    window.getCookie = function() { .... }
    This breaks if you try accessing getCookie in the markup eg:
  • m

    mysterious-toddler-20573

    07/18/2022, 11:29 PM
    huh
  • w

    witty-garage-37227

    07/18/2022, 11:29 PM
    I really just want htmx.org to not process the body until I trigger it
  • m

    mysterious-toddler-20573

    07/18/2022, 11:29 PM
    I have to admit my JavaScript module-fu is weak here.
  • m

    mysterious-toddler-20573

    07/18/2022, 11:29 PM
    that javascript should be eval'd lazily
  • w

    witty-garage-37227

    07/18/2022, 11:31 PM
    I think Alpine does it by having different builds, one for cdn (which just auto calls Alpine.start()) and the regular module version you install via npm
  • m

    mysterious-toddler-20573

    07/18/2022, 11:32 PM
    mmm
  • m

    mysterious-toddler-20573

    07/18/2022, 11:32 PM
    what is the error you are seeing because of this?
  • w

    witty-garage-37227

    07/18/2022, 11:33 PM
    getCookie not defined. I fixed it by puting that function in a different file and importing it before htmx.org
  • m

    mysterious-toddler-20573

    07/18/2022, 11:33 PM
    huh
  • m

    mysterious-toddler-20573

    07/18/2022, 11:33 PM
    getCookie() should be evaled lazily at request time
  • m

    most-flag-2080

    07/18/2022, 11:33 PM
    More so new features that cannot be done with htmx
  • m

    mysterious-toddler-20573

    07/18/2022, 11:34 PM
    i'm surprised it wouldn't be defined at that point.
  • r

    refined-waiter-90422

    07/19/2022, 12:02 AM
    In all fairness, all the HOTW frameworks are getting new features all the time, including htmx. There's quite a lot of nice stuff in htmx that hotwire didn't offer a year ago and visa versa. The best things will undoubtedly make it into every project. We're all in this together to make a better ecosystem.
  • w

    witty-garage-37227

    07/19/2022, 12:04 AM
    @mysterious-toddler-20573 another QQ does htmx include hs by default? I mean as part of the bundle, we are trying to move from cdn to local webpack builds
  • m

    mysterious-toddler-20573

    07/19/2022, 12:05 AM
    nope, you'll need to include hyperscript separately
  • l

    late-king-98305

    07/19/2022, 1:21 AM
    How would one pronounce HATEOAS - HAY-tee-OH-us? HAT-ee-OH-us? HAT-ee-OSS? I've never seen someone try to pronounce it, but I tend toward the first one when I'm reading it.
  • m

    mysterious-toddler-20573

    07/19/2022, 1:23 AM
    I have always said "HAY-TEE-OSS"
  • m

    mysterious-toddler-20573

    07/19/2022, 1:23 AM
    I am probably wrong
  • m

    mysterious-toddler-20573

    07/19/2022, 1:24 AM
    apparently senpai fielding prefers "hypermedia constraint" to HATEOS, which sounds bad
  • t

    tall-dinner-62086

    07/19/2022, 7:31 AM
    orange site alert
  • m

    mysterious-toddler-20573

    07/19/2022, 12:54 PM
    https://twitter.com/htmx_org/status/1549373246205837312
  • m

    mysterious-toddler-20573

    07/19/2022, 12:54 PM
    i regret to inform you all that reddit is at it again
  • l

    late-king-98305

    07/19/2022, 1:21 PM
    What subreddit?
  • m

    mysterious-toddler-20573

    07/19/2022, 1:22 PM
    https://www.reddit.com/r/programming/
1...751752753...1146Latest