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

    gorgeous-airport-54386

    08/10/2022, 4:40 PM
    Anyway, the whole server incl. images is almost exactly 1 gig
  • w

    white-motorcycle-95262

    08/10/2022, 5:18 PM
    Are
    HX-Trigger
    headers incompatible with a 302 Redirect?
  • m

    mysterious-toddler-20573

    08/10/2022, 5:20 PM
    I think a 302 redirect will get processed by the browser before we see the response
  • w

    white-motorcycle-95262

    08/10/2022, 5:20 PM
    ah, makes sense. Thanks 🙂
  • w

    white-motorcycle-95262

    08/10/2022, 5:22 PM
    My idea was I have a login form that sends a redirect to their profile page after authenticating on the backend, and wanted to send a custom event that would trigger a navbar refresh. I previously used a ClientRefresh to just reload everything, which worked, but wanted to try and accomplish just reloading the main div and triggering a navbar refresh (since the content of the navbar changes if you're logged in)
  • m

    mysterious-toddler-20573

    08/10/2022, 5:48 PM
    https://twitter.com/lzsthw/status/1556679380675579905
  • m

    mysterious-toddler-20573

    08/10/2022, 5:48 PM
    oof
  • m

    mysterious-toddler-20573

    08/10/2022, 5:48 PM
    1.5 hours to set up htmx
  • w

    white-motorcycle-95262

    08/10/2022, 5:52 PM
    lol what's he talking about: "developers can't host a .js file"? The quick start on the main page has the lib CDN on it?
  • g

    gorgeous-airport-54386

    08/10/2022, 5:55 PM
    he wanted a quickstart but also insisted on vendoring htmx for some reason and unpkg makes it a bit tricky to download i guess
  • m

    mysterious-toddler-20573

    08/10/2022, 6:01 PM
    three clicks!
  • m

    mysterious-toddler-20573

    08/10/2022, 6:02 PM
    htmx doesn't come with a web server, so I guess I'll write one from scratch. Also, it's too hard to install.
  • m

    mysterious-toddler-20573

    08/10/2022, 6:04 PM
    I mean, this is the "The Hard Way" author. You have to laugh.
  • b

    bitter-dog-98292

    08/10/2022, 6:06 PM
    The guy is trolling or what ?
  • m

    mysterious-toddler-20573

    08/10/2022, 6:07 PM
    zed shaw is never not trolling
  • g

    gorgeous-airport-54386

    08/10/2022, 6:07 PM
    htmx community realizing that a lot of frontenders don't have a go-to thing to serve some html
  • g

    gorgeous-airport-54386

    08/10/2022, 6:07 PM
    what if i wrote a deno+htmx tutorial
  • g

    gorgeous-airport-54386

    08/10/2022, 6:07 PM
    yes
  • m

    mysterious-toddler-20573

    08/10/2022, 6:07 PM
    lol do it and make it vita installable whatever that means
  • g

    gorgeous-airport-54386

    08/10/2022, 6:08 PM
    Copy code
    shell
    > deno run https://denizaksimsek.com/assets/deno-htmx.js
    Serving on http://localhost:8080...
  • m

    mysterious-toddler-20573

    08/10/2022, 6:11 PM
    what does this mean
  • g

    gorgeous-airport-54386

    08/10/2022, 6:11 PM
    server
  • g

    gorgeous-airport-54386

    08/10/2022, 6:11 PM
    copy the command to start a server
  • d

    dazzling-refrigerator-62542

    08/10/2022, 7:09 PM
    just had to join the discord after that funky tweet of a 1.5 hour setup... Is there a neat spot we can add sample/template projects that anyone can just... copy pasta to get started with htmx?
  • p

    powerful-helmet-42757

    08/10/2022, 7:13 PM
    Any way I could recreate a
    boost
    from js? Like...
    htmx.boost("/target");
  • m

    mysterious-toddler-20573

    08/10/2022, 7:13 PM
    https://htmx.org/server-examples/
  • m

    mysterious-toddler-20573

    08/10/2022, 7:14 PM
    currently linked off of https://htmx.org/examples/
  • m

    mysterious-toddler-20573

    08/10/2022, 7:14 PM
    maybe that should be linked from the docs page though
  • m

    mysterious-toddler-20573

    08/10/2022, 7:14 PM
    or, shoot, even the front page
  • m

    mysterious-toddler-20573

    08/10/2022, 7:14 PM
    I don't want to overreact to getting reamed by Zed, tbh this feels like htmx leveling up: I always wanted to have an internet slap fight with Zed!
1...774775776...1146Latest