Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Aral Balkan
@aral@mastodon.ar.al  ·  activity timestamp 4 days ago

🥳 New Kitten Release

https://kitten.small-web.org

You can now use the simple `on:` prefix instead of `hx-on:htmx:` to define inline event handlers for HTMX events¹.

Also, there are three new event shorthands for responding to your Kitten page’s connection lifecycle:

• on:connecting
• on:connect
• on:disconnect

(These expand during render to `hx-on:htmx:ws-connecting.window`, `hx-on:htmx:ws-open.window`, and `hx-on:htmx:ws-close.window`, respectively.)

These are useful when using Kitten’s Streaming HTML workflow.

Full change log:
https://codeberg.org/kitten/app/src/branch/main/CHANGELOG.md#2025-12-10

Enjoy!

:kitten:💕

¹ https://htmx.org/events/
² https://kitten.small-web.org/tutorials/streaming-html/

#Kitten #SmallWeb #peerToPeerWeb #web #dev #SmallTech #KittenRelease

  • Copy link
  • Flag this post
  • Block
Aral Balkan
@aral@mastodon.ar.al replied  ·  activity timestamp 3 days ago

Another quick release, this one adds Alpine.js support for shorthand event handlers.

Just add a `@` before your shorthand event handler names to have them expanded as inline Alpine.js event handlers.

e.g., `on:connect` → `@on:connect`

Enjoy!

:kitten:💕

#Kitten #AlpineJS #HTMX #SmallWeb #peerToPeerWeb #web #dev #JavaScript #nodeJS #SmallTech #KittenRelease

  • Copy link
  • Flag this comment
  • Block
AsarSameer
@AsarSameer@mastodon.social replied  ·  activity timestamp 4 days ago

@aral
"I’m not in this field myself, but I know many people will benefit from this update. Thank you for your efforts..and good luck💐

  • Copy link
  • Flag this comment
  • Block
Rami sultan
@Rammyyyy@metroholografix.ca replied  ·  activity timestamp 4 days ago

@aral cool matr

  • Copy link
  • Flag this comment
  • Block
Log in

Bonfire social

Bonfire social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.0-rc.2.33 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login