htmx 1.9.0 (2023-04-11) ยถ

Whatโ€™s Changed ยถ

  • Remove reference to Python 2 in README.md by @pdelboca in #1321

  • Added an example project for FastAPI by @AutomationPanda in #1335

  • Add support for โ€œnakedโ€ triggers and htmx:trigger event by @alexpetros in #1327

  • Fix for memory leak by @croxton in #1330

  • Update hx-target relative positional expressions by @kijowski in #1251

  • Normalize history cache keys - redux by @croxton in #1338

  • Escape colon characters in querySelector by @Nicals in #1314

  • Trigger event when a SSE-source is opened by @hirschenberger in #1331

  • Eleventy +Zola by @danieljsummers in #1332

  • Replaced website search with Google, similar to hyperscript.org. Removed anemic Algolia, docsearch. by @gnat in #1342

New Contributors ยถ

  • @pdelboca made their first contribution in #1321

  • @AutomationPanda made their first contribution in #1335

  • @alexpetros made their first contribution in #1327

  • @kijowski made their first contribution in #1251

  • @Nicals made their first contribution in #1314

  • @hirschenberger made their first contribution in #1331

Video ยถ

A look at the new HTMX 1.9 hx-on attribute that allows inline handling of events that occur on the page.

Weโ€™ll look at:

  • Handling simple events such as โ€œclickโ€ and โ€œmouseoverโ€

  • Handling HTMX events such as htmx:afterRequest and htmx:afterSettle

  • Calling a custom JavaScript function from the attribute

  • Handling a custom event triggered by Django and the HX-Trigger header

๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: ยถ