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

    lively-beach-14291

    10/01/2020, 7:06 PM
    @User So, I'd love to have a Julia/HTMX example via TodoMVC.
  • l

    lively-beach-14291

    10/01/2020, 7:06 PM
    I got caught writing a server-side DOM though....
  • l

    lively-beach-14291

    10/01/2020, 7:07 PM
    (always letting the perfect get in the way of the good enough)
  • m

    mysterious-toddler-20573

    10/01/2020, 7:11 PM
    what is inertia?
  • m

    mysterious-toddler-20573

    10/01/2020, 7:13 PM
    i don't understand how people acquire this many sponsors: https://inertiajs.com/sponsors
  • m

    mysterious-toddler-20573

    10/01/2020, 7:13 PM
    crazy
  • l

    lively-beach-14291

    10/01/2020, 7:15 PM
    They are in SV and host a party?
  • l

    lively-beach-14291

    10/01/2020, 7:16 PM
    Perhaps Inertia is targeting server-side developers with promise of MVC using their choice of front-end framework (with their framework as the universal target?). I'm actually not sure at all what Inertia is... a colleague pointed me to it, as he thought this is what I was looking for.
  • l

    lively-beach-14291

    10/01/2020, 7:17 PM
    I like HTMX since it's targeting server side developers... who want full control to render server side.
  • l

    lively-beach-14291

    10/01/2020, 7:18 PM
    Anyway... so I was working on a Julia port of TodoMVC but got distracted on what server-side DOM library I want, and of course, I don't like any.
  • l

    lively-beach-14291

    10/01/2020, 7:18 PM
    What would be great is to verify that paging works before 1.0 is tagged?
  • l

    lively-beach-14291

    10/01/2020, 7:25 PM
    @User What would make 1.0 be really cool is the TodoMVC using that Javascript service thingy. It'd then qualify as being fully client side... but, it'd show how it could work with your choice of backend tooling.
  • m

    mysterious-toddler-20573

    10/01/2020, 7:30 PM
    🤔
  • l

    lively-beach-14291

    10/01/2020, 7:33 PM
    So, I think Inertia is targeting Ruby on Rails developers and PHP Laravel developers who don't want to become Javascript developers.
  • l

    lively-beach-14291

    10/01/2020, 7:35 PM
    @User Anyway, having a TodoMVC example, in any language, would make the entire idea of HTMX far more concrete for potential users.
  • l

    lively-beach-14291

    10/01/2020, 7:35 PM
    Python might be the best backed example, I know many Python developers that don't want to become Javascript experts.
  • l

    lively-beach-14291

    10/01/2020, 7:36 PM
    Inertia is interesting because, I think, it's courting similar users (backend devs that don't want to learn Javascript). I think HTMX is doing it in a completely different way though...
  • l

    lively-beach-14291

    10/01/2020, 7:36 PM
    Anyway, next few days I'm working on a Julia DOM; then I'll be back to my TodoMVC /w HTMX.
  • g

    gorgeous-ghost-95789

    10/02/2020, 2:56 AM
    Quick progress report, I've added a UIKit demo to my Modal Example on GitHub (https://github.com/benpate/htmx-modal-example). I'll work this into a PR for the main HTMX site soon. I'll try to make a few more demos on UIKit on any other features that seem relevant to HTMX -- and I'm happy to take requests if there's anything that sticks out to anyone else.
  • l

    lively-beach-14291

    10/02/2020, 12:07 PM
    So, what does UIKit bring? It's a classic set of widgets with JS/CSS?
  • l

    lively-beach-14291

    10/02/2020, 12:13 PM
    Ah; mostly CSS. I think I'll be using Tailwind (or Tachyons)
  • g

    gorgeous-ghost-95789

    10/02/2020, 12:15 PM
    Yeah. It's very similar to Bootstrap. No magic. Mostly CSS, and a little JS to make things like Modals work. I'm just experimenting with it because it has some clean pre-made widgets.
  • l

    lively-beach-14291

    10/02/2020, 12:37 PM
    Oh. I hadn't thought about use of htmx for progressive but otherwise static websites.
  • m

    most-jelly-15242

    10/02/2020, 1:57 PM
    I've been working on the TodoMVC example as a way to build something with the PHP framework I am building to test things out. I actually found a couple of issues in my code so it's a good exercise! It's coming along nicely. I did find a couple of instances were I had to use Alpine JS. 1/ To use the "Enter" key as a trigger and also to prevent a duplicate request on enter + blur 2/ To add focus to the edit input and show it at the end of the value I am going to clean things up and try to post it live somewhere if you want to have a look. Can hyperscript listen to specific keys and key combinations?
  • l

    lively-beach-14291

    10/02/2020, 2:00 PM
    @User That'd be great; perhaps we could have a shared repository... then we could have various backend implementations (Julia, PhP, etc.)
  • m

    most-jelly-15242

    10/02/2020, 2:02 PM
    For sure. I should be able to share a live demo later today.
  • l

    lively-beach-14291

    10/02/2020, 2:20 PM
    I figured we'd need to use Alpine or something, but it'd be lovely if we didn't.
  • m

    mysterious-toddler-20573

    10/02/2020, 2:21 PM
    @User I would love to see the key logic. This is an area where both htmx and hyperscript need work: filtering events declaratively
  • m

    most-jelly-15242

    10/02/2020, 2:40 PM
    You can see the demo here https://todo.beyondcritical.com/
  • m

    most-jelly-15242

    10/02/2020, 2:43 PM
    To add a task:
    Copy code
    x-on:keydown.enter="if($event.target.value !== '') $dispatch('add-new')" hx-trigger="add-new"
1...444546...1146Latest