danjac,
@danjac@masto.ai avatar

Handling messages with and

  1. For normal page rendering, we just render the messages in an include in the base template.
    https://codeberg.org/danjac/radiofeed-app/src/branch/main/templates/_messages.html

  2. For HTMX requests, the snippet is injected into the response with some middleware, using the hx-swap-oob tag.

https://codeberg.org/danjac/radiofeed-app/src/branch/main/radiofeed/middleware.py#L35

  1. AlpineJS uses x-show and x-transition tags to fade out the messages once they are displayed.
  • All
  • Subscribed
  • Moderated
  • Favorites
  • django
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • JUstTest
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines