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

    miniature-lizard-24702

    09/03/2022, 12:24 PM
    idk something like a namespace?
    <form class="sortable" first:hx-post="/htmx/board/sort" first:hx-trigger="update" second:hx-post="/htmx/board/add" second:hx-trigger="add">
  • m

    miniature-lizard-24702

    09/03/2022, 12:25 PM
    I want it to call sort when I haven't added/removed cards to the form but only moved them around
  • m

    miniature-lizard-24702

    09/03/2022, 12:25 PM
    and call add when I've moved a card from one lane/column to another
  • m

    miniature-lizard-24702

    09/03/2022, 12:27 PM
    otherwise I'll just have to write some custom javascript...
  • m

    miniature-lizard-24702

    09/03/2022, 12:28 PM
    🥲
  • m

    miniature-lizard-24702

    09/03/2022, 12:28 PM
    but of course, an attribute only solution is the most elegant
  • b

    bland-coat-6833

    09/03/2022, 1:29 PM
    #796428329531605032 is calling you
  • m

    miniature-lizard-24702

    09/03/2022, 2:05 PM
    To be honest I’m too keen on hyper script
  • m

    mysterious-toddler-20573

    09/03/2022, 5:24 PM
    “Not great?”
  • m

    miniature-lizard-24702

    09/03/2022, 5:55 PM
    hint hint hx namespaces https://discord.com/channels/725789699527933952/725789747212976259/1015598125110530099
  • m

    miniature-lizard-24702

    09/03/2022, 5:55 PM
    https://tenor.com/view/geez-gosh-gif-25845600
  • r

    refined-waiter-90422

    09/03/2022, 8:13 PM
    Focusing on collections of intuitive patterns, is a really novel idea. A good pattern can totally transform how htmx and hyperscript is used. Being effective at vanilla htmx is a better strategy than calling into a big library that has htmx.
  • r

    refined-waiter-90422

    09/03/2022, 8:14 PM
    wouldn't be the first time people on here have deleted 100+ lines of code because some crazy intuitiveness we had no idea we already had.
  • r

    refined-waiter-90422

    09/03/2022, 8:21 PM
    if the smalltalk/ruby syntax is a bit too much of a mental hurdle, there's always or jquery to bridge that small gap of "LoB javascript in a few places"
  • r

    refined-waiter-90422

    09/03/2022, 8:22 PM
    kinda surprised DHH hasn't integrated hyperscript into RoR yet, but I imagine they gave up that fight after coffeescript.
  • r

    refined-waiter-90422

    09/03/2022, 8:22 PM
    although tbh, hyperscript has no compile step... so might happen. 😆
  • r

    refined-waiter-90422

    09/03/2022, 8:28 PM
    its funny how "LoB" CSS got so big with tailwind, yet, in the javascript world where "LoB" JS is actually needed, it still feels unheard of outside of this community.
  • l

    loud-action-20310

    09/03/2022, 9:19 PM
    surreal looks cool!
  • m

    miniature-lizard-24702

    09/03/2022, 9:30 PM
    I think I might use hyperscript if I could do the things alpine can but easily
  • m

    miniature-lizard-24702

    09/03/2022, 9:32 PM
    but I should just use both but I feel they both do similar things but are both lacking
  • m

    miniature-lizard-24702

    09/03/2022, 9:32 PM
    I dont want to use both
  • r

    refined-waiter-90422

    09/03/2022, 10:39 PM
    thanks. it's basically a collection of aliases and patterns on top of modern vanilla.. less is more.
  • r

    refined-waiter-90422

    09/03/2022, 10:45 PM
    I really wish jquery would come out with releases more often, there's obviously a demand for "less verbose chainable vanilla js". 4.0 should solve a lot of that but god knows when that will come out 😆
  • r

    refined-waiter-90422

    09/03/2022, 10:46 PM
    but whatever, surreal has all the good stuff.
  • r

    refined-waiter-90422

    09/03/2022, 10:49 PM
    huge advantage to both hyperscript and surreal is they both treat css animations and timelining as first class.
  • r

    refined-waiter-90422

    09/03/2022, 10:50 PM
    jquery had its own internal thing, but it's moving to css animations in 4.0.
  • r

    refined-waiter-90422

    09/03/2022, 10:59 PM
    being able to timeline css animations makes js animation libraries redundant
  • r

    refined-waiter-90422

    09/03/2022, 11:02 PM
    especially in hyperscript because its async transparent.. just call sleep/wait whenever and never block the main loop.
  • r

    refined-waiter-90422

    09/03/2022, 11:04 PM
    been saying it for awhile, hyperscript is the best motion graphics language that nobody knows about.
  • a

    ancient-father-3063

    09/04/2022, 8:28 AM
    is there a way to see htmx error logs?
1...812813814...1146Latest