norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.4K
active users

#htmx

6 posts6 participants2 posts today
Replied in thread

@poppacalypse it extends html with additional html tags (like hx-post and hx-target) that will let the htmx Javascript library know you want to do a certain POST request. And the response should be loaded in the specifiek target (eg. A div box by id).

So any element can therefor trigger a http request. And any kind of element within the same html page can be used as a target to update that section. Instead of updating the whole document/page.

I hope this is clear?

Thinking of creating a GUI application that would use #HTMX to draw its content (I kind of want to learn HTMX).

- HTTP server running on user's UNIX socket, in Go (?), and
- WebKit (?) window that would draw/interact with the content.

Am I crazy? Is there a better way to do this? I have to admit I'm very confused by (the lack of) Gtk/Adwaita documentation for total noobs.

New Kitten release 🎉

kitten.small-web.org

• New: Lovely new icons¹ and new callouts in Kitten Settings²

• New: Markdown now supports attributes and bracketed spans³

• New: client-side `kitten` global with `trigger` function for triggering events on the server from the client. (Useful when streaming client-side JavaScript when using Kitten’s Streaming HTML⁴ workflow. e.g., when you have to use a client-only web API like the Clipboard API but you want to keep all your logic on your server-side page.⁵)

• Fixed: The bound render function returned by `KittenComponent` class’s `component` getter now correctly awaits asynchronous templates. (In Kitten, you don’t have to care whether your templates contain promises. Kitten handles all that for you.)

Enjoy! :kitten:💕

¹ kitten.small-web.org/reference

² mastodon.ar.al/@aral/114381983

³ kitten.small-web.org/reference (also see mastodon.ar.al/@aral/114381462)

kitten.small-web.org/tutorials

⁵ e.g., See how I use this to implement a copy to clipboard button in the database page of Kitten’s Settings: codeberg.org/kitten/app/src/br Of course, you don’t have to use this and you can just write client-side JavaScript or use the built-in Alpine.js integration. e.g., how I do it on the (older) settings/identity page: codeberg.org/kitten/app/src/br

#Kitten#SmallWeb#web

Had a go at rewriting a small #DotNet Blazor app into a #GoLang web app with #HTMX yesterday so I could learn.

Had to rethink some of the way it’s put together to make it a bit smoother an experience, but it went really well and works really nicely. Going to keep on it so I have it feature complete with logging and auth

Hallo ! 👋

Wenn ihr Interesse an der -Entwicklung habt, habe ich zwei (ganz uneigennützige 😎) Tipps für euch:

👉 Morgen, Dienstag, 15. April, stelle ich euch beim tech&talk-Meetup in vor: meetup.com/codecentric-dortmun

👉 Am Mittwoch (16.4.) diskutieren wir auf der User Group über und JavaScript-Lösungen für moderne Webanwendungen: meetup.com/java-usergroup-muns

Würde mich freuen, euch zu sehen 😊

#PreludeTech's next weekend learning sprint on 10/11 May.

Pick a topic, learn through hands-on practice, connect with other ambitious devs, and get expert support on tap!

- Modern frontend development with #Django, #HTMX, #Tailwind, #Playwright and #AlpineJS: buff.ly/OQFbNGB
- Adding Authentication to your Django app: #AllAuth integration and customisation: buff.ly/7VhjPHK
- Getting #Git: A Beginner’s Guide to Version Control and the Terminal: buff.ly/BGBbNJm