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

    miniature-controller-37356

    08/24/2022, 8:55 PM
    Ah damn – that looks great. Thanks!
  • m

    miniature-controller-37356

    08/24/2022, 8:57 PM
    Wondering what other great tools I might not know about – fairly new to accepting JavaScript into my workflow
  • f

    famous-area-94520

    08/24/2022, 8:58 PM
    are you running this server-side or client-side?
  • m

    miniature-controller-37356

    08/24/2022, 8:58 PM
    Server-side
  • m

    miniature-controller-37356

    08/24/2022, 8:59 PM
    It's mainly so my girlfriend can use a component-based approach before switching to React / HTMX
  • m

    miniature-controller-37356

    08/24/2022, 9:00 PM
    Her first month with anything "code" – and web dev has definitely become a multi-layer kinda process
  • f

    famous-area-94520

    08/24/2022, 9:02 PM
    https://github.com/dz4k/deno-htmx-starter
  • f

    famous-area-94520

    08/24/2022, 9:03 PM
    this one uses jsx, if you're thinking of switching to react at some point
  • m

    miniature-controller-37356

    08/24/2022, 9:07 PM
    So Deno compiles TypeScript to JavaScript dynamically and Oak helps to create an Electron / Desktop app?
  • f

    famous-area-94520

    08/24/2022, 9:07 PM
    Oak creates a webserver, not a desktop app.
  • m

    miniature-controller-37356

    08/24/2022, 9:08 PM
    Ah alright – cheers! Really new to NPM generally myself. 😛
  • m

    microscopic-lamp-1076

    08/25/2022, 2:15 AM
    How can I do Android & iOS development as easily as Alpine/HTMX on the web? I know React Native and Expo, but those are React… anything like Alpine/HTMX?
  • m

    mysterious-toddler-20573

    08/25/2022, 2:46 AM
    https://hyperview.org/
  • e

    echoing-book-71490

    08/25/2022, 2:54 AM
    Maybe that's a hot take around here but I feel like true native apps are usually the way to go on mobile. Hypertext is native to the web but not mobile apps. Depends on the use case of cause (if you just wanna bring your ecommerce to mobile with native widgets it might be) but hypertext is great in the web because it's fundamentally native to it, mobile apps not so much
  • e

    echoing-book-71490

    08/25/2022, 3:03 AM
    For the server communication you can use your favorite flavor of CRUD API (aka what's commonly referred to as "REST" by people who don't know better) if you basically want to expose a prettier editor of some database tables or something like gRPC if you have more atomic transactional client-server interactions.
  • m

    mysterious-toddler-20573

    08/25/2022, 3:05 AM
    hyperview is a mobile-native hypermedia, so it provides mobile-specific native functionality. On the other hand, it's still a hypermedia, with a uniform interface, which is necessarily more limited than a full native mobile client. as always, it depends what you want to prioritize.
  • e

    echoing-book-71490

    08/25/2022, 3:20 AM
    I agree with that on a technical level! And as said, if you wanna replicate a web site as an app something like Hyperview could work. But anecdotally the pains of not being truly native (which also applies to the Cordovas, Flutters, React Natives etc. out there) grow with project time and the number of stakeholders (i.e. is it just you building and using the app or you + 2 other devs + a dozen people at the contracting company + however many users).
  • e

    echoing-book-71490

    08/25/2022, 3:23 AM
    I had it happen in multiple projects that we had a requirement that the framework couldn't do. So we wanted to build an extension, but realized that we couldn't even build the binaries anymore because it wasn't compatible with the current Xcode or Android SDK.
  • e

    echoing-book-71490

    08/25/2022, 3:24 AM
    Stuff like that just doesn't happen with a maintained native app because you're actually rebuilding the damn thing all the time.
  • p

    proud-dentist-32878

    08/25/2022, 7:24 AM
    I get what you're saying, but personally, i've had a lot of wins with cordova and capacitor tbh. The time savings of just using capacitor and writing occasional native extensions is worth it's weight in gold for most business applications (that are not games or the like). I'm just dropping this here, so others who want to try out capacitor/ionic are not too discouraged.
  • s

    some-hairdresser-28401

    08/25/2022, 9:11 AM
    Is it possible to use different `hx-target`s depending on the response status code?
  • g

    great-midnight-35149

    08/25/2022, 10:16 AM
    I haven't used it, but you can use the HX-Retarget header on a response to change elements. https://htmx.org/reference/#response_headers
  • m

    microscopic-lamp-1076

    08/25/2022, 10:43 AM
    This looks great, thank you. Only concerns I have are that it still requires RN/Expo, and it’s not as popular as it should be
  • m

    microscopic-lamp-1076

    08/25/2022, 10:47 AM
    Also, I don’t see, yet, how to do automated testing with HyperView
  • m

    microscopic-lamp-1076

    08/25/2022, 10:48 AM
    Just found https://jasonette.com/ too
  • m

    mysterious-toddler-20573

    08/25/2022, 11:25 AM
    not looking good folks
  • t

    tall-dinner-62086

    08/25/2022, 11:26 AM
    wtf happened july 2018?
  • m

    mysterious-toddler-20573

    08/25/2022, 11:27 AM
    they switched their URL set
  • m

    mysterious-toddler-20573

    08/25/2022, 11:27 AM
    most of the big jumps are stuff like that (changing user agent, etc)
  • s

    some-hairdresser-28401

    08/25/2022, 11:51 AM
    Thanks, I think this could work. If a response is a
    400
    I want to return the form including the validation errors, hence I know the
    id
    of the form to replace anyway (because it is the form itself). If it is a
    20x
    , just return the result (HTML or just the status code) which will be targeted client side as expected.
1...797798799...1146Latest