Skip to main content Crate workers_rsx Copy item path Source pub use fragment::Fragment ;pub use fragments::diff_html ;pub use simple_element::SimpleElement ;pub use state::decode_state ;fragment fragments html html_escaping simple_element state css Parse CSS syntax at compile time and return it as a &'static str html Render a JSX-like template to an HTML string.
Automatically extracts Tailwind class names and injects generated CSS as a <style> tag
inside <head> (or prepended if no <head> is found). raw Create a raw (unencoded) HTML string rsx Generate a renderable component tree without rendering it view Render a JSX-like template and return it as a worker::Response with HTML content type.
Automatically extracts Tailwind class names and injects generated CSS as a <style> tag
inside <head> (or prepended if no <head> is found). Raw A raw (unencoded) html string (borrowed) RawOwned A raw (unencoded) html string (owned) — used by control flow blocks PREFLIGHT_CSS Tailwind CSS v4 preflight (base reset styles), minified.
See: https://tailwindcss.com/docs/preflight Reducer Trait for a reducer that knows how to initialize its state
and reduce actions. Render Render a component to an HTML string dispatch Generic htmx dispatch: decode state → extract action → reduce → diff → return HTML. generate_tailwind_css Generate Tailwind CSS from a list of class names using tailwind-rs-core.
Returns an empty string if no classes produce valid CSS. handle Handle an HTTP request for an htmx app. component Define a function component as a struct that implements Render page Define a page component: a #[component] that also implements From<State>. ActionJson Derive type_tag() and json() methods for a #[serde(tag = "...")] enum.