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

    mysterious-toddler-20573

    06/29/2022, 3:05 PM
    good skill to have!
  • a

    abundant-spring-38265

    06/29/2022, 3:07 PM
    yes but not for a network architect 😄
  • m

    mysterious-toddler-20573

    06/29/2022, 3:15 PM
    even a network architect if they have the misfortune of needing to do some web development!
  • e

    echoing-dress-67727

    06/29/2022, 3:16 PM
    Does anyone know if there's an example out there of how to do an HTMX table that has edit AND delete? I see separate examples for those here: https://htmx.org/examples/ But I don't see an example that has both
  • a

    abundant-spring-38265

    06/29/2022, 3:20 PM
    is there any know issues of bootstrap5 & HTMX specifically around client-side-templates?
  • m

    mysterious-toddler-20573

    06/29/2022, 3:34 PM
    there shouldn't be
  • m

    mysterious-toddler-20573

    06/29/2022, 3:34 PM
    nothing special about generated HTML inserted into the DOM when it comes to CSS
  • a

    abundant-spring-38265

    06/29/2022, 3:41 PM
    have tried Metro4 and it's the same 😦
  • r

    red-farmer-97020

    06/29/2022, 4:02 PM
    Won a prize at a hackathon at work with a HTMX based project. I love this project
  • a

    abundant-spring-38265

    06/29/2022, 4:02 PM
    quick Q, is there anything special we need for Flask like we do for Django e.g: {% verbatim %}
  • a

    abundant-spring-38265

    06/29/2022, 4:04 PM
    YES!!!
  • a

    abundant-spring-38265

    06/29/2022, 4:04 PM
    {% raw %} {% endraw%} is required!!!
  • a

    abundant-spring-38265

    06/29/2022, 4:04 PM
    for Flask
  • a

    abundant-spring-38265

    06/29/2022, 4:12 PM
    answer below 🙂
  • m

    mysterious-toddler-20573

    06/29/2022, 4:12 PM
    EXCELLENT
  • g

    gorgeous-airport-54386

    06/29/2022, 7:43 PM
    "partial hydration" "islands architecture" my sibling in Christ, it's called sprinkles
  • a

    ancient-father-3063

    06/30/2022, 4:42 AM
    Can I have htmx do two different things (from one trigger?)
  • a

    ancient-father-3063

    06/30/2022, 4:45 AM
    I want to do like hx-get /urlA hx-target A and hx-get /urlB hx-target B
  • r

    refined-waiter-90422

    06/30/2022, 5:14 AM

    https://www.youtube.com/watch?v=E0VCNB9Ep2Mâ–¾

  • r

    refined-waiter-90422

    06/30/2022, 5:14 AM
    /dist
    is ressurected
  • s

    some-diamond-25050

    06/30/2022, 7:10 AM
    I have posted discussion here https://github.com/bigskysoftware/htmx/discussions/951
  • b

    bland-coat-6833

    06/30/2022, 11:41 AM
    And there was me listening to http://sunday.fm/
  • a

    abundant-spring-38265

    06/30/2022, 12:23 PM
    guys, is there any way of populating a table using client-side-templates with nunjacks with a target div?
  • a

    abundant-spring-38265

    06/30/2022, 12:24 PM
    i have a list which i'd like to use to populate my elements with inside of a table
  • a

    abundant-spring-38265

    06/30/2022, 12:25 PM
    e.g: {% for line in log_file %} {{ line }} {% endfor %}
  • r

    red-caravan-17890

    06/30/2022, 1:04 PM
    Hi. Not sure about nunjacks but I've had a lot of trouble getting htmx to work with table rows.
  • a

    abundant-spring-38265

    06/30/2022, 1:04 PM
    thoughts so, will stick with list-groups 😦
  • e

    echoing-librarian-49117

    06/30/2022, 1:06 PM
    hey folks! I'm currently playing around with htmx for a toy project of mine (I'm one of those guys who's afraid of the usual suspects in the frontend worlds and I'm very happy to be able to build a proper UI without messing around with npm and JS) and I'm hitting a barrier with a UI part. I'm not sure how to solve that properly so I thought I'd drop my thoughts in here to see if some of you have some comments on that (or pointers to relevant existing work on that matter): I'm building a kind of journal where the user can document "sessions" consisting of some metadata and then a number of session items. What I have in mind is a form that includes an "add new item" button which inserts a new row where the user can enter data for a single item. That's pretty straightforward, but it gets interesting when it comes to sending the data to the server and processing it there: AFAIK, HTML forms (and also htmx?) don't support the concept of "a list of things" where the things in the list consist of a couple of form elements themselves. The only way I could think of is to suffix each form element for each row with an index and then parse it on the server, trying each index and using whatever is there. That should work, but I'm wondering if there's something more elegant. (An SPA would probably send a list of JSON objects to the server, which would feel much more straightforward)
    m
    • 2
    • 8
  • m

    mysterious-toddler-20573

    06/30/2022, 1:13 PM
    table parsing is notoriously finicky unfortunately, you can turn on the
    useTemplateFragments
    options which is a bit better at dealing with them: https://htmx.org/docs/#config
  • w

    witty-garage-37227

    06/30/2022, 1:15 PM
    Have you ever wanted to you know, send the timezone of the browser to your backend so you can you know render date/time in their timezone, then HTMX is for you
    Copy code
    html
    <body hx-headers='js:{"X-Timezone": Intl.DateTimeFormat().resolvedOptions().timeZone}' class="bg-gray-100">
    </body>
    OMG, Like WTH 🤯 🤯 🤯
1...730731732...1146Latest