paulox, to django
@paulox@fosstodon.org avatar

Carlton Gibson is presenting the talk "API Maybe: Bootstrapping a Web Application circa 2024 " at DjangoCon Europe 2024 🦄

#DjangoConEurope2024 #DjangoConEurope #DjangoCon #Django #HTMX #API #JSON

CC @djangoconeurope @django @carlton

Opening slide: API Maybe
DjangoCon Europe 2024 audience
Slide: 2024 "HTML over the wire"

paulox, to django
@paulox@fosstodon.org avatar

Karen Tracey is presenting the talk "Django + Alpine.js + htmx Ups & Downs" at DjangoCon Europe 2024 🦄

CC @djangoconeurope @django

DjangoCon Europe 2024 attendees
Upside Wins slide
Karen on the stage

abishek_muthian, to random

Reactivity without React!

I used #htmx in Bone Health Tracker to edit & update the dexa scan report data reactively, without having to import a million JavaScript libraries.

FAANG companies made their web development challenges everyone else's problem as well by promoting overly complex, over-engineered libraries and frameworks.

99.9% of the websites wouldn't need to show a animated like counter getting updated reactively and if we do; we now have htmx.

scrolling through bonehealthtracker.com Shows 3 tables of dexa scan data I click edit on one of the rows, change value and the updated data is reflected immediately. Skeleton image with different colors interpreting the data is shown. Graphs for T-Score and Z-Score is shown.

kerfuffle, to webdev
@kerfuffle@mastodon.online avatar

I'm only just finding my way in the land of , but it feels like "trigger a request from any element" is a trap. I want progressive enhancement, which still requires a functional non-Javascript page before adding the nice things htmx offers. I didn't realise how rusty I am with regard to designing a presentation layer for all this in the backend.

kerfuffle, to Kotlin
@kerfuffle@mastodon.online avatar

In 45 minutes I made a application from scratch, which uses to include from a pom file. It uses static files for the first load, and then renders HTML from templates for of the parts of the pages that need that kind of interaction. There's no (or any at all) and no like or .

Now because simply setting up a project says close to nothing about its real world viability, next step is an actual usecase ( :

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I'm back to playing with and with the @egil Htmxor library. The Counter sample is nice and clear.

He has something exciting here for the and audience.

Check it out! https://github.com/egil/Htmxor

THe counter sample running in a browser with a current count of 12

kerfuffle, to Java
@kerfuffle@mastodon.online avatar

Sometimes, when I talk to frontend developers about how requires you to have more presentation awareness in the projection side of your server application as you generate content in HTML, which in the world is pretty much what we did with , Freemarker and Thymeleaf, I'm met with amazement.

No dis, but be aware: There's a generation of capable professional frontend developers who don't know backend servers can serve HTML just fine, and not just Json over HTTP.

dlesieur, to webdev
@dlesieur@fosstodon.org avatar

Can't recommend enough the Hypermedia Systems ebook to web developers. Not only a great resource for learning and "getting" #htmx, and acquiring key best practices for using it, but it also makes the case for the classic #hypermedia system architecture, which has been somewhat disregarded over the last decade or two. Should be a worthwhile read, regardless of the framework or app architecture you intend to use.
https://hypermedia.systems/ #webdev #html

pbx, to random
@pbx@fosstodon.org avatar

This is a great rapid-fire intro to . Too fast for good retention of course, but a great way to survey HTMX capabilities and style in 8 minutes. https://www.youtube.com/watch?v=TT7SV-bAZyA

danjac, to random
@danjac@masto.ai avatar

tip: if using "htmx.ajax()" API call to trigger an HTMX request, and you need to push the URL to your history, return response with "HX-Push-URL". (django-htmx has a handy "push_url()" function for this).

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

I made a ServiceWorker intercept calls and manage state inside of the ServiceWorker process all in-browser.

The downside is it takes a few seconds for the service worker lifecycle to start, so it's likely only available on page refreshes. Still a neat concept.

Service worker handling click events for HTMX with count going up on each click.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

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

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

Htmx-powered todo app.

jjude, to random

Is it possible to create audio recorder kind of web apps using ?

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

This a question I have for #htmx #aspnetcore users ( @alexzeitler and @egil) who are attempting to reduce repetition with components.

Do you think less components and more reusability is better, or are you losing some benefits of breaking down the UI into optimized functions?

I thought about this building my JetBrains store sample, too. I'm unsure where to draw the line of reuse vs. bespoke endpoints.

brutella, to webdev

A big advantage when working with web technology is that you can easily deploy your product on your own server. http://hkknx.hochgatterer.me

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

egil, to blazor
@egil@mastodon.social avatar

Continuing experiments with #htmxor, aka. #htmx + #Blazor. Working on enabling support for template fragments.

Input, feedback, suggestions are very welcome indeed: https://github.com/egil/Htmxor/discussions/37

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?

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

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

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!

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!

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

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