natera, to random
@natera@fosstodon.org avatar

It's incredible the ammount of code needed for simple stuff using React. Glad that I get to work with #HTMX

natera,
@natera@fosstodon.org avatar

@doublebyte Give it a look, for me the combo of #Django and #HTMX is a great one, extend HTML and gets rid of the complex JavaScript React combo

Zearin, to 11ty

@zachleat Suppose I wanted to run using its own dev server, but I also wanted to tinker with (https://htmx.org) to learn about it.

Q1: Is this possible now?

Q2: Will this be possible in the not-too-distant future?

nhoizey, to react French
@nhoizey@mamot.fr avatar

“React, Solid, htmx” by Bobae Kang

🔗 https://bobaekang.com/blog/react-solid-htmx/

> [HTMX] can get you 80% there with radically less complexity. No extra dependencies, no build step, no advanced tooling (now re-written in Rust!), no complicated state management, no “double data” problem, no hydration mismatch… Just write your HTTP server and return HTML!

⚓️ https://nicolas-hoizey.com/links/2024/04/17/react-solid-htmx/

jitterted, to Java
@jitterted@sfba.social avatar

🚨 #LiveCoding Alert 🚨

Working solo on some final Ensemble Timer features using #Java #SpringBoot and a bit of #htmx.

Join me now on Twitch at https://jitterted.stream

jitterted,
@jitterted@sfba.social avatar

Finished the "Reset Timer" feature as well as adding sounds for "Pause" and "Resume" (that way you can hear when the timer is paused without having to look at it all the time).

With the help of a viewer, was able to DELETE the kludgey JavaScript code and let #htmx handle all of the work of playing audio. Sending an <audio> element over the WebSocket with autoplay worked as desired!

ntha, to php
@ntha@mastodon.social avatar

Modern React.js with Vite is really nice, with out of the box TypeScript support and all, but by far my favourite text stack is most likely with . It's the simplicity that gets me.

carlton, (edited ) to django
@carlton@fosstodon.org avatar

Some nice feedback on django-template-partials on the hellsite.

Translated from the French:

> A package that helps me organize my templates in my #Django and #HTMX projects is django-template-partials from @carlton. This is the library that has had the most influence on my code in a long time.

That's what we were hoping for. 🥰

https://github.com/carltongibson/django-template-partials

cwoodruff, to random
@cwoodruff@mastodon.social avatar

Doing a talk at lunch today covering how to improve with . I have to give this talk a few times in 2024 at conferences, so it's a great way to improve the content before then. Wish me luck!

egil, to blazor
@egil@mastodon.social avatar

Usssh, now I’ve done it. I actually have to talk about htmx and blazor next monday. So I need all you folks help, what are the libraries you are using? What are the good and bad things about that combo?

https://www.youtube.com/live/-Mc9pROA0Ho?si=mpxSGkSTVV2MJT5_

Pinging @khalidabuhakmeh and my #htmx and #Blazor friends!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@brtkdotse @egil This might be controversial, but here are my thoughts on why you technically may want to use #Blazor and #htmx together and why you wouldn't.

I have social reasons why you may want to prefer one over the other, too. But that's more opinion ;)

https://gist.github.com/khalidabuhakmeh/84beff0adf2d49092a9a7769207d4084

jitterted, to random
@jitterted@sfba.social avatar

Using #htmx in my apps has let me turn the "no logic in HTML templates" all the way up to 11.

I am now very aware (and suspicious) of any logic being evaluated, or even things like string concatenation, being done in HTML templates.

I may have to write a tool to warn me (or fail a test!) if I start using th:if, th:unless, or anything that looks like a method call in my Thymeleaf templates.

art_codesmith, to javascript
@art_codesmith@toot.cafe avatar

After a bit of playing with #FastAPI, I feel like it's really, well, API-oriented. You can have templating of course, but it's just a liiiittle clumsier than returning JSON (e. g., you need to manually inject the request into it).

So I'm not entirely sure if I should stick to my original plan of mostly rendering HTML and using #htmx, or if I should go with the framework flow and make a #Vue app. Probably the latter TBH.

#webdevelopment #python

nhoizey, to react French
@nhoizey@mamot.fr avatar
czue, to django

I just published a new article!

It's a 4,000-word guide using websockets in Django that contains everything I wished existed when I set out to about them.

I use channels and htmx to build an async ChatGPT clone with streaming and memory.

https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/

bkuhlmann, to random

This is a good talk on #htmx by Martijn Dashorst if you need more examples/exposure. Plucked one of my favorite slides from the talk below (make sure to follow the slide link as well -- so great -- to Roy Fielding's original talk).

https://www.slideshare.net/dashorst/htmx-web-10-with-the-benefits-of-web-20-without-the-grift-of-web-30

cwoodruff, to random
@cwoodruff@mastodon.social avatar

I have 2 days to do whatever I want. I can't remember when that happened last. Three things I want to do:

  1. Write chapter 5 of the networking book on multithreaded C#
  2. Finish the demo
  3. Plan a new event for next year.
khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

If you're curious about #HTMX and #aspnetcore and how they can work together, check out this sample using Hx-Trigger to trigger other elements to update from a single request.

This is nice if you have global shared state like a shopping cart, score, etc.

https://github.com/khalidabuhakmeh/HxTriggerSample

khalidabuhakmeh, (edited ) to javascript
@khalidabuhakmeh@mastodon.social avatar

Big shout out to @alexzeitler for writing this blog post on and .

It's pretty amazing how little code (and no ) it takes to create a like counter experience. All with HTML and some C# code.

https://alexanderzeitler.com/articles/listening-to-htmx-hx-trigger-response-header-events-from-alpine-js/

Updated with sample: https://github.com/khalidabuhakmeh/HxTriggerSample

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Look at all that #htmx in the #aspnetcore and #dotnet ecosystem. That's pretty cool.

ewen, to python French
@ewen@mastodon.fedi.bzh avatar
khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Yes! #htmx #dotnet #aspnetcore https://endjin.com/blog/2024/04/aspnet-core-razor-htmx-chartjs

Cool post by @HowardvRooijen. Probably could use the HTMX.NET to make it even sweeter.

pvergain, to django French
@pvergain@framapiaf.org avatar

An awesome list of resources about htmx such as articles, posts, videos, talks and more.

Hoping to keep this list updated as much as possible, any new links through PRs are appreciated.

decentral1se, to random
@decentral1se@varia.zone avatar

anyone using #htmx and have a take on it? seems pretty cool tbh after a surface level browse https://htmx.org

aral,
@aral@mastodon.ar.al avatar

@decentral1se 👍

PS. Kitten has first-class support for it and it makes Kitten’s Streaming HTML workflow possible:

https://ar.al/2024/03/08/streaming-html/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines