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

    gorgeous-airport-54386

    08/10/2022, 9:00 PM
    anyway i think there's no optical harm in engaging this guy in bad faith, he's encouraged lots of people to come out of the woodworks to proclaim how much they love htmx
  • d

    dazzling-refrigerator-62542

    08/10/2022, 9:01 PM
    currently going thru the docs. Might do a bit of "moving thangs around" so htmx.org can have a similar doc structure to other sites and a bit less scattering of info. I don't know how I feel about an npm template to bootstrap a project, seems like it goes against the whole backend agnostic approach. tbd
  • j

    jolly-kite-167

    08/10/2022, 9:06 PM
    My first time working with HTMX, I had it up and running on Glitch in like 5 minutes. Zed Shaw is a semi-pro shit stirrer. But then you're in good company, as that dude once tried taking on D. Richard Hipp because he "footgunned" himself with Fossil.
  • m

    mysterious-toddler-20573

    08/10/2022, 9:20 PM
    πŸ™‚
  • m

    mysterious-toddler-20573

    08/10/2022, 9:20 PM
    All good, I don't mind a good ol' internet slap fight
  • m

    mysterious-toddler-20573

    08/10/2022, 9:43 PM
    i like it!
  • m

    modern-smartphone-82132

    08/11/2022, 1:29 AM
    Interesting observation. Most of the people who called him out are non US people.
  • m

    modern-smartphone-82132

    08/11/2022, 1:52 AM
    Question: I have a Django list template with a table. For each of the columns I have an input field with a populated datalist so people can select an item, then htmx will kick off and return the filtered set from the server. Works great. Each of the fields have hx-vals for each of the fields, 8 in total. Then I have a hyperscript script which is called on each of this input fields with _="on keyup or htmx:beforeRequest call myFunction(). The script is doing one thing, and that is to set all those input fields as global variables and then the hx-vals="js:{search1: $search1, search2: $search2 etc etc. I've tried to use hx-vals=myFunction() so I don't have to repeat for each field, but have JSON errors I've not been able to figure out yet. There is also a button to clear all the filters, and again, that works great. (side note) The only problem is that, if I select a value for one of the fields, click the clear button and try to select the same field once more, it won't work. I believe that has something to do with the input and datalist combination. Now, here is the problem I had trying to attach htmx to a button so I could user the same globals to call for an excel report of the filtered table. As soon as I add hx-vals to the button, it won't fire. Don't know why or if it should work. My only solution, since I've not figured out how to return an expanded string from a hyperscript script was to use _="on click set @href to `/my/url/?search1=${inputField1.value}&search2=${inputField2.value}" which will expand it info the href and send it to the server. I'm sure most of this can be solved in a much smarter way, and pointers are welcome. Guess I'm learning htmx and hypsersrcipt THE HARD WAY πŸ™‚
  • a

    adamant-exabyte-92636

    08/11/2022, 5:16 AM
    I think he may have blocked me? Ha! Twitter king that I am (with my 3 followers). You know what? I’m not even very sorry, because of ALL the criticisms you could possibly leverage at htmx, saying it’s hard to install … πŸ€·β€β™‚οΈπŸ€¦πŸ»β€β™‚οΈπŸ˜‚
  • a

    adamant-exabyte-92636

    08/11/2022, 5:23 AM
    This was pure genius btw
  • m

    mysterious-toddler-20573

    08/11/2022, 5:25 AM
    πŸ™‚ I was expressing genuine surprise at "hard to install" being the take away
  • m

    mysterious-toddler-20573

    08/11/2022, 5:25 AM
    but people have asked about starter projects before, just typically not in such a caustic manner
  • m

    mysterious-toddler-20573

    08/11/2022, 5:26 AM
    I hold out hope we can turn it around!
  • m

    mysterious-toddler-20573

    08/11/2022, 5:28 AM
    hmm, hard to know w/o seeing the HTML
  • m

    mysterious-toddler-20573

    08/11/2022, 5:28 AM
    can you give us a condensed version?
  • a

    adamant-exabyte-92636

    08/11/2022, 5:28 AM
    I can’t see his reaction to this not-my-finest-moment little poke, but I’m guessing I didn’t help matters πŸ˜‚ Sorry @mysterious-toddler-20573 and htmx community
  • m

    mysterious-toddler-20573

    08/11/2022, 5:29 AM
    hey man, he goes hard in the paint sometimes too, I've seen it. All good, I don't begrudge anyone some nerd slap fighting on twitter!
  • m

    mysterious-toddler-20573

    08/11/2022, 5:46 AM
    i am once again reminded of this simpsons scene:

    https://www.youtube.com/watch?v=K5lYXaVkA0Uβ–Ύ

  • m

    modern-smartphone-82132

    08/11/2022, 8:46 AM
    Thanks for getting back to me. I will do a short write-up with samples and share with the group.
  • b

    bland-coat-6833

    08/11/2022, 9:04 AM
    Zed Shaw reminding me why I’ve enjoyed avoiding twitter over the last few years.
  • g

    gorgeous-airport-54386

    08/11/2022, 9:11 AM
    what, you don't like people complaining about problems and actively avoiding solutions?
  • g

    gorgeous-airport-54386

    08/11/2022, 9:11 AM
    me and the 12 (twelve) people i follow are having a great time
  • g

    gorgeous-airport-54386

    08/11/2022, 10:27 AM
    https://github.com/dz4k/deno-htmx-starter
  • s

    stocky-dentist-80693

    08/11/2022, 12:02 PM
    I tried this (just out of curiosity) but get
    error: No config file found
    when running
    deno task start
  • s

    stocky-dentist-80693

    08/11/2022, 12:04 PM
    If I manually add
    deno.json
    it works, though... does that file just need adding to
    scaffoldFiles
    in
    boiler.ts
    ?
  • s

    stocky-dentist-80693

    08/11/2022, 12:07 PM
    Also, I've never used Deno (had to install it) and took me under 5 minutes to get that working (on Windows) which was good.
  • g

    gorgeous-airport-54386

    08/11/2022, 12:54 PM
    me writing boiler.ts: "will i forget to update this? ehh, it's fine" literal seconds later, writing deno.json:
  • s

    stocky-dentist-80693

    08/11/2022, 12:59 PM
    πŸ˜‚
  • g

    gorgeous-airport-54386

    08/11/2022, 3:56 PM
    it installs in your home directory so you can take it from machine to machine or use it in a container
  • d

    dazzling-refrigerator-62542

    08/11/2022, 4:10 PM
    aight so, currently tweaking the docsite a bit. I decided NOT to change the content but rather the overall info architecture (removing examples and instead putting them into the docs, splitting sections up, etc.). Gonna be tackling the home screen next to properly guide folks to the right section of the docs. lmk if ya'll want me to continue in this direction
1...776777778...1146Latest