Python devs can ship dynamic apps without heavy JS.
Python devs can ship dynamic apps without heavy JS.
The HTMX 2.0 integration
focuses on real-world pain points:
preserving user state and
taming request payloads
without introducing complexity.
The HTMX 2.0 integration
focuses on real-world pain points:
preserving user state and
taming request payloads
without introducing complexity.
do not have to be heavy.
FastHTML integrates HTMX 2.0
so you can build
responsive interfaces,
keep input state intact,
and send structured data
with minimal markup.
do not have to be heavy.
FastHTML integrates HTMX 2.0
so you can build
responsive interfaces,
keep input state intact,
and send structured data
with minimal markup.
Add hx-preserve and an id.
Add hx-preserve and an id.
keeps resetting
during polling,
you do not need a rewrite.
Add hx-preserve
and an id.
HTMX 2.0 will keep
the DOM node’s state
while allowing
content swaps
around it.
keeps resetting
during polling,
you do not need a rewrite.
Add hx-preserve
and an id.
HTMX 2.0 will keep
the DOM node’s state
while allowing
content swaps
around it.
with hx-values.
Trigger a post,
pass an index
or ID directly,
and swap
the result back in.
Fewer lines,
fewer forms,
and workflows
that read like intent
rather than ceremony.
with hx-values.
Trigger a post,
pass an index
or ID directly,
and swap
the result back in.
Fewer lines,
fewer forms,
and workflows
that read like intent
rather than ceremony.
HTMX 2.0 upgrades
make your components resilient.
Preserve user state
during refreshes and
streamline your request data
without reshaping your markup.
HTMX 2.0 upgrades
make your components resilient.
Preserve user state
during refreshes and
streamline your request data
without reshaping your markup.
shines wherever state matters:
textareas,
sliders,
video playback positions.
Give the element an id
and let HTMX 2.0
keep user state steady
through partial renders.
shines wherever state matters:
textareas,
sliders,
video playback positions.
Give the element an id
and let HTMX 2.0
keep user state steady
through partial renders.
hidden inputs everywhere.
With hx-values,
send extra data on
any request right from a button.
Cleaner HTML,
fewer form wrappers,
and clearer intent
in your fastHTML code.
hidden inputs everywhere.
With hx-values,
send extra data on
any request right from a button.
Cleaner HTML,
fewer form wrappers,
and clearer intent
in your fastHTML code.
tidy payloads,
and smooth swaps in one stack.
tidy payloads,
and smooth swaps in one stack.
after an auto-refresh?
hx-preserve fixes that
by keeping input state
across HTMX swaps.
Your users keep typing,
your UI keeps updating,
and you keep your sanity.
after an auto-refresh?
hx-preserve fixes that
by keeping input state
across HTMX swaps.
Your users keep typing,
your UI keeps updating,
and you keep your sanity.
the simple way:
fastHTML,
HTMX 2.0, and
two attributes.
the simple way:
fastHTML,
HTMX 2.0, and
two attributes.
FastHTML keeps leveling up. The Oct ’25 release
brings HTMX 2.0 with hx-preserve and hx-values, letting Python devs
build snappy,
dynamic apps
with less code.
FastHTML keeps leveling up. The Oct ’25 release
brings HTMX 2.0 with hx-preserve and hx-values, letting Python devs
build snappy,
dynamic apps
with less code.