Skip to content

Attributes for HTMX extensions #176

@pintariching

Description

@pintariching

I'm trying to use the HTMX SSE extension, but it seems it's not implemented yet. Here's what I get:

maud! {
    div hx_ext="sse" sse_connect="/status" sse_swap="status-update" {
        ...
    }
}
error[E0599]: no function or associated item named `sse_connect` found for struct `hypertext::prelude::hypertext_elements::div` in the current scope
  --> crates/scada-server/src/axum_ui/status_view.rs:26:26
   |
25 | /     maud! {
26 | |         div hx_ext="sse" sse_connect="/status" sse_swap="status-update" {
   | |                         -^^^^^^^^^^^ function or associated item not found in `hypertext::prelude::hypertext_elements::div`
   | |_________________________|
   |

error[E0599]: no function or associated item named `sse_swap` found for struct `hypertext::prelude::hypertext_elements::div` in the current scope
  --> crates/scada-server/src/axum_ui/status_view.rs:26:48
   |
25 | /     maud! {
26 | |         div hx_ext="sse" sse_connect="/status" sse_swap="status-update" {
   | |                                               -^^^^^^^^ function or associated item not found in `hypertext::prelude::hypertext_elements::div`
   | |_______________________________________________|
   |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions