~/talk

HtmxHelper The revival of JsHelper

Talkat CakeFest 2024 · 2024-07-24..07-26· [web-platform, php]
links:none on file
slides:none on file

Claim: htmx integrates with CakePHP to give progressive enhancement without a new helper or heavy JS. Demo code uses bake, migrations and Faker to seed 100 dummy articles, vendors a minified htmx file, and uses the HDMX plugin detectors to switch layouts. Examples show infinite scroll with HX get + HX swap, a search input with 500ms debounce updating the URL, and a raffle implemented by polling every 2s that stops server‑side with a header and has a 50% chance to pick a winner — it works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Talk overview and disclaimers
  3. 3:52Raffle time
  4. 5:22Demo setup and migration
  5. 10:00Infinite scroll demo
  6. 11:05Optimizing HTMX requests
  7. 12:50HTMX plugin integration
  8. 15:19View blocks for HTMX
  9. 18:19Custom elements for HTMX
  10. 20:44Second raffle
  11. 21:26History of JavaScript in web development
  12. 32:26CakePHP and JavaScript helpers
  13. 37:16Demo with HTMX search
  14. 45:23Search functionality with HTMX
  15. 48:40JS helper challenges and removal
  16. 55:36Modern frontend frameworks
  17. 1:00:31Do we need frontend frameworks?
  18. 1:02:37HTMX for progressive interactivity
  19. 1:04:19Long polling demo setup
  20. 1:09:13Long polling demo
  21. 1:10:21Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.