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

    lively-beach-14291

    09/18/2020, 1:58 PM
    Great.
  • l

    lively-beach-14291

    09/18/2020, 1:59 PM
    I'm curious, has anyone done a TodoMVC for htmx ? (in Python, or what ever backend?)
  • l

    lively-beach-14291

    09/18/2020, 2:00 PM
    I was thinking of doing one for Julia, we get lots of people wanting to build websites in Julia, most of them are data scientists and are kinda new to web development. Hence, I have a feeling HTMX might be much more comfortable for them than learning Vue or some other framework.
  • l

    lively-beach-14291

    09/18/2020, 2:01 PM
    I figure once we've got one implementation, we could port it to various backends, like Python/Flask, NodeJS, etc.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:03 PM
    I believe there was a python todomvc
  • l

    lively-beach-14291

    09/18/2020, 2:05 PM
    It'd be easier to port, and perhaps we should have a single repository, with sub-folders for each language. I think people new to web development just sort of scratch their head when they see htmx, or even people seasoned who use Vue or the like.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:06 PM
    https://github.com/tastejs/todomvc
  • m

    mysterious-toddler-20573

    09/18/2020, 2:06 PM
    Looks like a place to start
  • l

    lively-beach-14291

    09/18/2020, 2:07 PM
    So, I'm curious if they'd even take an htmx on their main page?
  • m

    mysterious-toddler-20573

    09/18/2020, 2:09 PM
    I mean don’t you know who we are? Htmx? Psshh. You’ve probably never heard of it...
  • m

    mysterious-toddler-20573

    09/18/2020, 2:09 PM
    https://sparktutorials.github.io/2016/06/26/ajax-without-writing-javascript.html
  • m

    mysterious-toddler-20573

    09/18/2020, 2:10 PM
    Older todomvc in intercooler. Htmx port would be super easy.
  • l

    lively-beach-14291

    09/18/2020, 2:11 PM
    Does it make sense to think about something like this in the main repository? ie, as a sort of example in each backend language?
  • l

    lively-beach-14291

    09/18/2020, 2:12 PM
    (probably not, since you'd need to have multiple test environments)
  • m

    mysterious-toddler-20573

    09/18/2020, 2:12 PM
    Yeah I could see that being in the www directory
  • m

    mysterious-toddler-20573

    09/18/2020, 2:13 PM
    Or maybe a separate repo so people can clone it?
  • b

    big-airline-13935

    09/18/2020, 2:13 PM
    @mysterious-toddler-20573 hyperscript 0.0.1 appears to be having issues (on latest chrome)...
  • l

    lively-beach-14291

    09/18/2020, 2:13 PM
    Well, I see them as 1-file examples, I don't know if you'd need a separate repository or anything.
  • l

    lively-beach-14291

    09/18/2020, 2:14 PM
    @mysterious-toddler-20573 How about htmx/www/todomvc/htmx_julia.jl htmx/www/todomvc/htmx_pyuthon.py etc.
  • l

    lively-beach-14291

    09/18/2020, 2:15 PM
    or, todomvc/julia/ todomvc/python/
  • l

    lively-beach-14291

    09/18/2020, 2:15 PM
    Then we could have index.md
  • l

    lively-beach-14291

    09/18/2020, 2:15 PM
    is thinking about how to make it painfullly clear how it'd actually work.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:16 PM
    Thanks Ben will investigate
  • l

    lively-beach-14291

    09/18/2020, 2:20 PM
    Is there a in-browser library for mocking a backend; so we could have pure js TodoMVC example?
  • l

    lively-beach-14291

    09/18/2020, 2:21 PM
    ie, where requests are redirected to Javascript handlers
  • l

    lively-beach-14291

    09/18/2020, 2:30 PM
    https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API 😉
  • l

    lively-beach-14291

    09/18/2020, 2:31 PM
    So, perhaps we could create a TodoMVC that is entirely JS.
  • m

    most-jelly-15242

    09/18/2020, 2:42 PM
    @mysterious-toddler-20573 Any important changes to htmx.trigger api in the last update? I am getting duplicate requests with it now where in 0.0.8 it was working correctly.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:42 PM
    Nothing intentional
  • m

    mysterious-toddler-20573

    09/18/2020, 2:43 PM
    what are you seeing duplicate events on?
1...313233...1146Latest