https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • Mmm thatโ€™s a bug for sure
    m

    mysterious-toddler-20573

    04/08/2023, 4:51 PM
    Mmm thatโ€™s a bug for sure
  • definitely not expectec
    m

    mysterious-toddler-20573

    04/08/2023, 5:07 PM
    definitely not expectec
  • I'll try Chrome
    f

    future-table-82610

    04/08/2023, 5:26 PM
    I'll try Chrome
  • what version of htmx?
    m

    mysterious-toddler-20573

    04/08/2023, 5:32 PM
    what version of htmx?
  • OK, I'm able to reproduce
    m

    mysterious-toddler-20573

    04/08/2023, 5:56 PM
    OK, I'm able to reproduce
  • but not sure what to do
    m

    mysterious-toddler-20573

    04/08/2023, 5:56 PM
    but not sure what to do
  • ๐Ÿ™‚
    m

    mysterious-toddler-20573

    04/08/2023, 5:56 PM
    ๐Ÿ™‚
  • I can check if the response contains a `/<body/` and not use templates in that case
    m

    mysterious-toddler-20573

    04/08/2023, 5:57 PM
    I can check if the response contains a
    /<body/
    and not use templates in that case
  • does this sound right? I remember SVGs give problems because they can contain a `<title` element, but surely they can't contain a `<body` element...
    m

    mysterious-toddler-20573

    04/08/2023, 5:58 PM
    does this sound right? I remember SVGs give problems because they can contain a
    <title
    element, but surely they can't contain a
    <body
    element...
  • Glad I don't need to figure out a solution for using `boost` and not using `useTemplateFragments`!
    f

    future-table-82610

    04/08/2023, 6:10 PM
    Glad I don't need to figure out a solution for using
    boost
    and not using
    useTemplateFragments
    !
  • This seems like a bug so wondering if there is an escape technique to solve: tried to use toggle (and add) to insert a tailwind class (translate-x-3.5). That failed without error. Toggle translate-x-3 and translate-x-4 both work fine so I assume that the "." in 3.5 causes the failure. A. Is that correct?, and B. Is there some syntax that would allow me to escape the decimal so I can use this tailwind class?
    d

    delightful-whale-44666

    04/08/2023, 9:08 PM
    This seems like a bug so wondering if there is an escape technique to solve: tried to use toggle (and add) to insert a tailwind class (translate-x-3.5). That failed without error. Toggle translate-x-3 and translate-x-4 both work fine so I assume that the "." in 3.5 causes the failure. A. Is that correct?, and B. Is there some syntax that would allow me to escape the decimal so I can use this tailwind class?
  • Do htmx/hs have any upcoming releases scheduled?
    w

    white-motorcycle-95262

    04/09/2023, 2:53 PM
    Do htmx/hs have any upcoming releases scheduled?
  • ]
    a

    aloof-painter-18008

    04/09/2023, 5:20 PM
    ]
  • How to correctly import htmx and extensions when using vite?
    a

    aloof-painter-18008

    04/09/2023, 5:40 PM
    How to correctly import htmx and extensions when using vite?
  • when i import any extension, it throws htmx is not defined error
    a

    aloof-painter-18008

    04/09/2023, 5:40 PM
    when i import any extension, it throws htmx is not defined error
  • `<script>` ?
    r

    refined-waiter-90422

    04/09/2023, 6:30 PM
    <script>
    ?
  • Does anyone know a tutorial that is only uses django and starts with a simple things like loading a list view and when click instead of loading in different url the detail view comes up on the same page?
    s

    steep-gold-4096

    04/09/2023, 11:30 PM
    Does anyone know a tutorial that is only uses django and starts with a simple things like loading a list view and when click instead of loading in different url the detail view comes up on the same page?
  • All the tutorials ive found so far have additional package requirements and jump straight into things like CRUD or User Authentication.
    s

    steep-gold-4096

    04/09/2023, 11:31 PM
    All the tutorials ive found so far have additional package requirements and jump straight into things like CRUD or User Authentication.
  • <https://github.com/spookylukey/django-htmx-patterns/>
    r

    refined-waiter-90422

    04/09/2023, 11:58 PM
  • Minimum viable htmx + django โ˜๏ธ
    r

    refined-waiter-90422

    04/09/2023, 11:58 PM
    Minimum viable htmx + django โ˜๏ธ
  • No libraries except htmx
    r

    refined-waiter-90422

    04/09/2023, 11:59 PM
    No libraries except htmx
  • This is clever '''<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>'''
    m

    mammoth-family-48524

    04/10/2023, 12:59 AM
    This is clever ''''''
  • Hi, dumb back-end developer here. I'm currently making something with MithrilJS that dynamically adds something to the vdom that has a hx-get property. When interacting with the element, it doesn't make the request because, I'm guessing, htmx isn't automatically listening for new things being added. Is there some way I can make an element register itself with html upon being added. Thanks.
    b

    brash-machine-54411

    04/10/2023, 7:25 AM
    Hi, dumb back-end developer here. I'm currently making something with MithrilJS that dynamically adds something to the vdom that has a hx-get property. When interacting with the element, it doesn't make the request because, I'm guessing, htmx isn't automatically listening for new things being added. Is there some way I can make an element register itself with html upon being added. Thanks.
  • A possible hack I can think of is to create the thing ahead of time and toggle its visibility when it needs to appear.
    b

    brash-machine-54411

    04/10/2023, 7:26 AM
    A possible hack I can think of is to create the thing ahead of time and toggle its visibility when it needs to appear.
  • But as I typed that, I swear I could hear the faint cry of thousands of front-end devs.
    b

    brash-machine-54411

    04/10/2023, 7:27 AM
    But as I typed that, I swear I could hear the faint cry of thousands of front-end devs.
  • Who says after 1.9 it's not gonna be 1.10 though ๐Ÿ˜
    f

    freezing-waitress-26396

    04/10/2023, 8:20 PM
    Who says after 1.9 it's not gonna be 1.10 though ๐Ÿ˜
  • Who cares about semver? Typescript style versioning is the way to go. ๐Ÿ™‚
    p

    proud-kangaroo-39262

    04/10/2023, 9:36 PM
    Who cares about semver? Typescript style versioning is the way to go. ๐Ÿ™‚
  • Letโ€™s use fruit as the version numbers
    m

    miniature-lizard-24702

    04/11/2023, 1:25 AM
    Letโ€™s use fruit as the version numbers
  • I propose the next version be called mango
    m

    miniature-lizard-24702

    04/11/2023, 1:26 AM
    I propose the next version be called mango
  • tomato then
    f

    freezing-waitress-26396

    04/11/2023, 6:22 AM
    tomato then
1...108910901091...1146Latest