Skip to main content

Crate fhtmx

Crate fhtmx 

Source
Expand description

Create HTML with Rust, with support for htmx attributes and DaisyUI components.

§Quick start

use fhtmx::prelude::*;

let html = div()
    .class("container")
    .add(h1().add("Hello, world!"))
    .add(p().add("Some text"))
    .render();

§Features

  • anyhow (default): Enables anyhow::Error conversion support.
  • chrono_0_4: Enables IntoNode for chrono types.
  • jiff_0_2: Enables IntoNode for jiff types.
  • actix: Enables Actix-web response integration.
  • axum: Enables Axum response integration.

Modules§

prelude
Re-exports the most commonly used types and traits.

Macros§

children
Build a list of nodes with mixed types.