1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! HTMX response types and extractors
//!
//! This module builds on `axum-htmx` with additional features:
//! - Out-of-band swaps (`HxSwapOob`)
//! - Automatic template detection (`HxTemplate`)
//! - Smart response enum (`HxResponse`)
//!
//! # Re-exported from axum-htmx
//!
//! All request extractors and response helpers from `axum-htmx` are re-exported
//! for convenience. See [axum-htmx documentation](https://docs.rs/axum-htmx) for
//! detailed usage.
//!
//! # Out-of-Band Swaps
//!
//! Use [`HxSwapOob`] to update multiple page elements in a single response:
//!
//! ```rust,no_run
//! use acton_htmx::htmx::{HxSwapOob, SwapStrategy};
//! use axum::response::Html;
//!
//! async fn update_with_oob() -> impl axum::response::IntoResponse {
//! let mut oob = HxSwapOob::new();
//!
//! // Update main content
//! oob.add("main-content", "<p>New main content</p>", SwapStrategy::InnerHTML);
//!
//! // Update notification badge
//! oob.add("notification-count", "<span>5</span>", SwapStrategy::InnerHTML);
//!
//! // Update flash messages
//! oob.add("flash-container", r#"<div class="alert">Success!</div>"#, SwapStrategy::InnerHTML);
//!
//! oob
//! }
//! ```
// Re-export axum-htmx request extractors
pub use ;
// Re-export axum-htmx response helpers
pub use ;
// Re-export axum-htmx middleware and guards
pub use ;
// acton-htmx extensions
pub use ;