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

    broad-greece-52242

    04/28/2023, 3:26 PM
    Thanks! Do you think I could get the desired behavior by submitting the form via htmx?
  • r

    ripe-action-67367

    04/28/2023, 3:27 PM
    Unless you have some very special requirements, you absolutely should be able to
  • b

    broad-greece-52242

    04/28/2023, 3:28 PM
    Thanks, really appreciate it!
  • e

    early-chef-10764

    04/28/2023, 4:31 PM
    hi folks, random question. htmx should it automatically process htmx attributes loaded on an htmx response ?
  • m

    mysterious-toddler-20573

    04/28/2023, 4:31 PM
    yes
  • e

    early-chef-10764

    04/28/2023, 4:33 PM
    ty, I love your avatar by the way. xD
  • a

    ancient-shoe-86801

    04/28/2023, 5:09 PM
    happy to see that some folks at Google recognize that making your URLs "/mythings//myotherthings" doesn't make your API automatically RESTful, but that is a pattern shared with REST:

    https://cdn.discordapp.com/attachments/725789747212976259/1101555706773127339/image.png▾

  • a

    ancient-shoe-86801

    04/28/2023, 5:09 PM
    https://google.aip.dev/121
  • m

    mysterious-toddler-20573

    04/28/2023, 5:45 PM
    https://github.com/bigskysoftware/htmx/blob/master/CHANGELOG.md#192---2023-04-28
  • s

    some-airline-73512

    04/29/2023, 8:32 AM
    Anyone had experience with https://github.com/jorgebucaran/hyperapp ? I'm curious what htmx-minded people think
  • r

    ripe-action-67367

    04/29/2023, 8:49 AM
    Reminds me of mithril.js and similar projects
  • r

    ripe-action-67367

    04/29/2023, 8:49 AM
    They even mention virtual DOM
  • r

    refined-waiter-90422

    04/29/2023, 11:54 AM
    I keep feeling like these "html as function calls" type libraries originated from a time when IDE's couldn't easily embed highlighters within eachother. I mean, you'll get some benefit in IDE's that are simply better at working with javascript.
  • r

    refined-waiter-90422

    04/29/2023, 11:55 AM
    But the trade off is you're adding a whole layer of abstraction between yourself and the html, so eh.
  • r

    refined-waiter-90422

    04/29/2023, 11:57 AM
    I want to live in a world where you can get HTML, SQL, shell highlighting embedded in any language, but it just isn't the case.
  • r

    refined-waiter-90422

    04/29/2023, 11:58 AM

    https://cdn.discordapp.com/attachments/725789747212976259/1101839942323286066/183111942-9d6e8dc7-6b82-47fb-9492-07d25ffc6523.png▾

  • r

    refined-waiter-90422

    04/29/2023, 11:58 AM
    Just as an example, I maintain this one over on Sublime for Python, but this stuff certainly does not come out of the box, sadly.
  • r

    refined-waiter-90422

    04/29/2023, 12:00 PM
    editors/tooling determining our languages and frameworks feels bad man, but so common.
  • r

    refined-waiter-90422

    04/29/2023, 12:01 PM
    (Actually, this is my theory on how we ended up with so much separation of concerns in the industry in the first place... sub-par tooling).
  • r

    refined-waiter-90422

    04/29/2023, 12:03 PM
    aka "editor can only use X highlighter on 1 file"... so, separation of concerns.
  • r

    refined-waiter-90422

    04/29/2023, 12:05 PM
    @ripe-action-67367 Shell in Python strings for Pyinfra actually 😉
  • b

    bland-coat-6833

    04/29/2023, 12:52 PM
    I'm feeling this at the moment. Language servers get us some of the way but it's still a very non-trivial task to embed several languages in the same file. Treesitter is fairly nice for highlighting. But that only covers a few editors. I also think that editor capabilities are one reason people are put off by path-based routing. It can be a little clunky to create new paths compared to adding strings to an existing file.
  • g

    great-cartoon-12331

    04/29/2023, 2:20 PM
    i'd give embedded DSLs a little more credit 🙂 full-fledged programming languages typically allow more fine-grained composition, typechecking, etc.
  • g

    great-cartoon-12331

    04/29/2023, 2:20 PM
    over in #1087038976210255994 we've been talking about that recently
  • b

    bland-coat-6833

    04/29/2023, 2:35 PM
    I’m just trying to create something like Svelte but with Python instead of JS. Editor support looks like it will be hellish.
  • b

    bitter-machine-55943

    04/29/2023, 3:59 PM
    There was a discussion about generalizing f-strings to do language-specific things, like
    sql”…”
    or
    html”…”
    , which might help editor support
  • b

    bland-coat-6833

    04/29/2023, 4:02 PM
    huh - that could be interesting. Guessing that won't be for 3.12 ?
  • b

    bitter-machine-55943

    04/29/2023, 4:07 PM
    https://github.com/jimbaker/tagstr still in progress, but Guido is involved so seems like it has legs
  • b

    bitter-machine-55943

    04/29/2023, 4:17 PM
    I found that from a discussion in the
    django-components
    repo where they want to make single-file-components and embed the template/JS/CSS within one Python file, but editor support isn’t there, no syntax highlighting of the HTML in a Python string, and so on.
  • g

    great-cartoon-12331

    04/29/2023, 10:01 PM
    hello, i'm looking for a way to download a file from my backend server if it's a 200 OK response but if the server sends an error response then htmx should trigger the error event so i can handle it client side. i have basically
    <a href="/my/file" hx-boost="true">my file</a>
    . this is just to make htmx do the request. the issue is that on success htmx is swapping in the (binary) contents of the file into the page.
1...110811091110...1146Latest