hx-pod cover image

hx-pod

Latest episodes

undefined
Feb 6, 2024 • 8min

The basics: hx-indicator and the special htmx loading classes

Do you ever want to let the user know you are loading something?Of course you do. Just add the htmx-indicator class to any element (loading div, svg, gif), and the parent requests will make it show up.We discuss the magic you get for free in htmx and the way to customize it!
undefined
Feb 3, 2024 • 4min

The basics: hx-params

ok, you are submitting a form.. but what if you don't want to submit the whole thing?Use what only i call "the mysql selector of htmx"hx-params="first_name, last_name, state"or what if you wanted to exclude a field?hx-params="not secret_field"
undefined
Feb 1, 2024 • 4min

The basics: hx-vals

How do you feel about setting your request values right there inline?STATIC<button hx-get="/my/weather/data"              hx-trigger="click"              hx-vals='{"location": "01245"}'>   Click for weather in one static location</button>DYNAMIC<button hx-get="/my/weather/data"              hx-trigger="click"              hx-vals='js:{location: document.getElementById("zipcode").value}'>   Click for weather in one static location</button>OR<button hx-get="/my/weather/data"              hx-trigger="click"              hx-vals='js:{location: someJavascriptCalculationFunction()}'>   Click for weather in one static location</button>
undefined
Jan 30, 2024 • 7min

Bonus: The Single Source of Truth

Your built-in advantage of building html on the server: everything important is already there.Here are the two server/client mental model discussions referenced in the audio:1. Primagean "The truth about HTMX"Front end backend s=discussion starts around 12mhttps://www.youtube.com/watch?v=2hMrk7A8Wf02. Mostly Technical Podcast"High Floor vs. High ceiling"https://mostlytechnical.com/episodes/13-the-sql-injection-slide-with-sam-selikoff#t=9m6s
undefined
Jan 28, 2024 • 7min

The basics: hx-boost

How can you change your entire site to be faster and snappier with just one attribute?How can you recreate the entire libraries of turbolinks and pjax in a single line?How can you make your entire site essentially an SPA?<body hx-boost="true">
undefined
Jan 25, 2024 • 8min

Bonus: HOWL (Hypermedia On Whatever you'd Like)

Or, "How I learned to stop worrying and stack this stack on all other stacks."Essay on HOWL from htmx.org:https://htmx.org/essays/hypermedia-on-whatever-youd-like/
undefined
Jan 25, 2024 • 6min

The basics: hx-on (htmx 1.x -> 2.0)

ALERT ALERT hx-on is changing tomorrow!...sort of1->2 guide:https://v2-0v2-0.htmx.org/migration-guide-htmx-1/hx-on attribute:https://htmx.org/attributes/hx-on/
undefined
Jan 24, 2024 • 4min

The basics: hx-confirm

What, you're too good for a regular javascript confirmation?Finehttps://htmx.org/examples/confirm/
undefined
Jan 23, 2024 • 8min

Bonus: htmx and gatekeeping

Who gatekeeps the Gatekeepers? the coast guard?Thank you to rick @maverism for tweeting out the podcast!
undefined
Jan 23, 2024 • 5min

The basics: hx-put, hx-patch, and hx-delete

What on earth are PUT PATCH and DELETE and why would I use them instead of POST?Well, which do you like better?A) <button hx-delete="/articles/1">B) <button hx-post="/articles/1/delete">

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode