keithjgrant, to webdev
@keithjgrant@front-end.social avatar

I’m sorry, but I think HTMX is just gross.

A worthwhile experiment, absolutely, but I can’t see myself ever using this for a serious production application. I hope we keep iterating on this before settling for a non-turing complete, directive-driven language that gives Angular 1.0 PTSD flashbacks

#webdev #JavaScript #htmx

scy, to webdev
@scy@chaos.social avatar

I've spent a few days playing around with , and I'd like some insights from people who are using it in production. Doesn't need to be a paid project, but more than just "my pet experiment".

What are you using it for?

Like, to me it feels as if either the backend needs to be really tailored to HTMX, with HTML fragments and custom headers and stuff, or you need to start writing non-trivial amounts of JS in the frontend for anything but the most basic tasks.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Every few months, I come back to rewriting a app in , sometimes it's with Blazor, sometimes it's Razor Pages, and this time with (although I may have already done HTMX 😅)

I got some quality-of-life improvement issues entered to help make better, too. So that's a win!

Htmx-powered todo app.

schizanon, (edited ) to webdev

If there was an element that changes it's content when users interact with other elements on the page, what name would it have?

PLEASE NOTE: I am not suggesting that this element needs to exist; I am only asking what it would be called. I'm building a CustomElement, I just want it to have a name that makes sense.

Vote and suggest others in replies. Please boost for reach!

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I don’t know who wants this, but this is in a Blazor Server App, invoking an endpoint that returns a Server-Rendered Blazor component.

cc @alexzeitler

Blazor and HTMX

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 and friends!

aardrian, to accessibility
@aardrian@toot.cafe avatar

I see kids excitedly sharing .

So I looked a sample page:
https://htmx.org/examples/inline-validation/

Image sans alt, error message without programmatic association.

Then another:
https://htmx.org/examples/edit-row/

See attached image for the HTML from the DOM as I tried to edit a field. Never mind the lack of accName or that it replaces the row in the DOM for a different row.

Cool.

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

Round 2 of making components work with .

_chrismay, to python
@_chrismay@fosstodon.org avatar

The conversations at DjangoCon US have convinced me that there's a thirst for knowledge about in the community.

What questions do you have?

I'd love to help answer them!

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Very excited about the latest feature/workflow I’m adding to Kitten. I call it… 🥁

✨ Streaming HTML ✨

Implement back-end functionality and stream HTML updates to the client without writing any front-end JavaScript.

Just give your forms names and listen for them in an onConnect() handler you export from your page. Kitten handles everything else – setting up a WebSocket route for you, mapping triggers to events, etc. – thanks to Kitten + #htmx magic 🪄

#Kitten #SmallWeb #StreamingHTML #web #dev

egil, to random
@egil@mastodon.social avatar

@khalidabuhakmeh I have been reading though the #HTMX docs and it seems like an extended version of Blazor Web Apps enhanced navigation and form handling (https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/routing?view=aspnetcore-8.0). Do you know of anybody who has combined Blazor page components with HTMX, replacing enhanced navigation and form handling from Blazor?

I've seen your Razor/cshtml pages packages and tutorial, so thought you may know.

mnl, to webdev

So I’m genuinely puzzled by #htmx. Do you folks who use it return html fragments? Or do you just render a whole page and extract single nodes? If you do the first, how is this “better” than just returning json and rendering it on the frontend?

I don’t really understand the architectural premise and the hypermedia systems book doesn’t really help me click.

#webdev

louis, to golang
@louis@emacs.ch avatar

I want to share an update of my web app project. I was working on it the last few days and chose to use only , and server-side rendering with a backend.

The goal is to replicate (or replace) an existing app that is built with a heavy and very limited proprietary RAD tool.

It feels a little old school (say hello to FORM :-D), but it is SO GOOD. With htmx and traditional server-side rendering I can build anything, debug anything and it just works. I now have around 6k lines of HTML and Go code, did not write a single line of JavaScript and use no JSON. Also, I don't have to build a JSON API on the backend for every piece of data I need. SQL is my "REST API" now.

Feels very productive. I think I found joy in web development again. :')

aral, to SmallWeb
@aral@mastodon.ar.al avatar

🍞 Kitten toast, anyone?

A fifteen-second demo of how you can create a toast message in 42 lines of code¹ without writing any client-side JavaScript using Streaming HTML² in Kitten³.

Video:

https://vimeo.com/925828491

Source code:

https://codeberg.org/kitten/app/src/branch/main/examples/streaming-html/toast/index.page.js

Enjoy!

:kitten: 💕

¹ Almost half of which is CSS.
² https://ar.al/2024/03/08/streaming-html/
³ https://codeberg.org/kitten/app

valberg, to django

So, #django admin and #htmx - sounds like a good match?

video/mp4

tbroyer, to random
@tbroyer@piaille.fr avatar

Tell me you don't understand REST and HTTP without saying you don't understand REST and HTTP.

#http #htmx #htmx2

quadratur, to accessibility German

#HTMX is made and used by people who take a screw and force it into a wall with a hammer, permanently asking: 'Why should only nails be used like nails?'
They are screwing things up and create a total mess.
#accessibility
#Barrierefreiheit

(Explanation for outsiders: HTMX wishes to be an extension to websites by changing the purpose of things that are already thought out well and behave in predictable ways. It's like taking a car and change the trunk into an engine, regardless of #usability.)

sil, to random
@sil@mastodon.social avatar

not sure who's an developer on Mastodon: maybe @benpate? https://mastodon.social/@sil/110340165942981980 thread has some useful pointers on accessibility in HTMX examples, i.e., there isn't much and there should be :) I know very little about HTMX, having only discovered it today, but this sort of thing does incline me against looking further at it, so perhaps that might be an area worth looking a bit more into, HTMX team?

mborus, to random
@mborus@mastodon.social avatar

Had a lot more "fun" with #HTMX today. Main problem was that I can't make a div element behave like a button inside a form. (Which I needed to refactor a JavaScript mess without changing the CSS too much)

The current solution: Writing vanilla JavaScript (see https://htmx.org/api/) - then tacking hx-on="click: myJSfunc(...)" onto the divs and doing the htmx.ajax request from my custom JS code.

Feels very hacky, but it seems to work so far.

resmo, to random
@resmo@mstdn.social avatar

#htmx changed the license to Zero-Clause BSD without asking contributors for approval? Did I miss something?

https://github.com/bigskysoftware/htmx/commit/e16f1865a494b6281f8a44ed0db5338e718b3f07

treyhunner, (edited ) to django
@treyhunner@mastodon.social avatar

I just watched @pythonbynight's talk on the current state of in and now I'm turn between trying out django-render-block, forge-htmx, and @carlton's django-template-partials.

https://github.com/clokep/django-render-block
https://github.com/forgepackages/forge-htmx
https://github.com/carltongibson/django-template-partials/

Anyone written a blog post or made a repository attempting to write the same HTMX-powered view(s) using all 3 of those packages? I'd love to compare and contrast them more directly.

Here's the talk:

https://www.youtube.com/watch?v=J0xES5wGjik

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

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

You need this code snippet to get and to play nice. Guess I have another blog post to write. 😅

paulox, (edited ) to memes
@paulox@fosstodon.org avatar

RT @htmx_org

So is anyone actually using htmx or what?

#htmx #production #development #memes #html #javascript #http

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

So I got my Razor Pages demo working with boost concept and view transitions. And with a few lines of CSS and no backend changes, I get this sweet transition animation. What do you think, folks?

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