Skip to content

Add htmx 4 support (ElementaryHTMX4) - #26

Open
sliemeobn wants to merge 7 commits into
mainfrom
htmx4
Open

sliemeobn wants to merge 7 commits into
mainfrom
htmx4

Conversation

@sliemeobn

Copy link
Copy Markdown
Collaborator

Adds htmx 4 support as new modules. ElementaryHTMX still points at v2.

  • ElementaryHTMX4, ElementaryHTMX4SSE, ElementaryHTMX4WS, mirroring the htmx 4 attributes, <hx-partial> and the hx-sse:/hx-ws: extensions
  • explicit inheritance via a leading .inherited / .append / .inheritedAppend argument
  • modifiers and config as typed HCON entries (hx-swap, hx-trigger, hx-status, hx-boost, hx-config, meta(htmxConfig:), ...); the v2-style modifier chains still work but are deprecated
  • integration tests: a Hummingbird test server checked with Playwright against vendored htmx 4.0.0, as a separate CI job

@sliemeobn sliemeobn mentioned this pull request Oct 26, 2026
@seadiem

seadiem commented Oct 26, 2026

Copy link
Copy Markdown

/// Requires htmx 2.0.11 or later.

Did they add hx-partial to version 2 as well?

@sliemeobn
sliemeobn marked this pull request as ready for review October 27, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants