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

    ripe-action-67367

    12/16/2022, 3:55 PM
    i'll try to look up what I did
  • r

    ripe-action-67367

    12/16/2022, 3:58 PM
    Copy code
    mustache
            {{#.}}
                ...
            {{/.}}
  • r

    ripe-action-67367

    12/16/2022, 3:58 PM
    This is mustache and indeed it supports iterating over root
  • r

    ripe-action-67367

    12/16/2022, 3:59 PM
    it's also very lightweight, but, compared to nunjacks, has basically no way to implement any kind of complex logic, aside from basic comparing to undefined and such
  • r

    ripe-action-67367

    12/16/2022, 4:00 PM
    for your specific use-case it should be more than enough
  • a

    abundant-spring-38265

    12/16/2022, 4:00 PM
    ah, i don't need that in this instance 🙂
  • a

    abundant-spring-38265

    12/16/2022, 4:00 PM
    will give that a go now 🙂
  • a

    abundant-spring-38265

    12/16/2022, 4:00 PM
    thank you!!!
  • a

    abundant-spring-38265

    12/16/2022, 4:31 PM
    all the examples seem to also work with names lists: https://github.com/janl/mustache.js
  • a

    abundant-spring-38265

    12/16/2022, 4:32 PM
    ignore, i'm being stupid 🙂
  • a

    abundant-spring-38265

    12/16/2022, 4:32 PM
    can confirm this works 🙂
  • r

    refined-waiter-90422

    12/16/2022, 5:00 PM
    10K 10K 10K 10K 10K 10K 10K 10K 10K 10K 10K 10K 10K 10K 10K
  • d

    damp-holiday-78684

    12/17/2022, 7:44 AM
    Hello! I am using
    datalist
    to perform search and select in a form. I want to display the name of the object using value, but I am using the ID of the object for subsequent requests. So I can't use the value attribute since it has the name rather than the ID of the object. Is there a way to make
    hx-include
    use attributes other than
    value
    while doing the request? Thanks!
  • d

    dazzling-dusk-82436

    12/17/2022, 5:14 PM
    Question
  • d

    dazzling-dusk-82436

    12/17/2022, 5:14 PM
    does changing hx-get or hx-post automatically trigger a new request?
  • m

    mysterious-toddler-20573

    12/17/2022, 7:57 PM
    it shouldn't
  • m

    mysterious-toddler-20573

    12/17/2022, 7:57 PM
    although a
    load
    event might be reprocessed
  • d

    dazzling-dusk-82436

    12/17/2022, 10:21 PM
    Is that something we can listen for ? Something like attribute change ?
  • d

    dazzling-dusk-82436

    12/17/2022, 10:21 PM
    The use case is changing the URL of the element in question to add query params/filters
  • d

    dazzling-dusk-82436

    12/17/2022, 10:21 PM
    Ofc the JavaScript Api can be used but it would be a neat thing
  • d

    dazzling-dusk-82436

    12/17/2022, 10:22 PM
    Where you have a few client side options for filtering and you change the URL and it reloads
  • t

    thankful-addition-60522

    12/18/2022, 1:47 AM
    twig ~ nunjucks > mustache
  • r

    refined-waiter-90422

    12/18/2022, 3:26 AM
    honestly, built in php templating ... fast as heck, flexible as heck. syntax highlighting supported in every editor.
    <?=value?>
    shorthand.
  • r

    refined-waiter-90422

    12/18/2022, 3:26 AM
    been using jinja awhile now, it's eh, okay.
  • r

    refined-waiter-90422

    12/18/2022, 3:32 AM
    for golang people this looks really promising. erb/php templating in go.
  • r

    refined-waiter-90422

    12/18/2022, 3:33 AM
    by the same guy doing the litefs stuff at fly.io
  • t

    thankful-addition-60522

    12/18/2022, 3:46 AM
    scuse me wat
  • t

    thankful-addition-60522

    12/18/2022, 3:46 AM
    ruby people prefer haml over erb
  • t

    thankful-addition-60522

    12/18/2022, 3:46 AM
    or pug
  • t

    thankful-addition-60522

    12/18/2022, 3:47 AM
    as for php there's twig and latte https://latte.nette.org/
1...953954955...1146Latest