What problem does it solve?
Building HTML in Rust often leads to runtime template errors, awkward escaping, and fragile string concatenation, especially as pages grow and components proliferate.
Core Features & Use Cases
- Compile-time verified markup: Use Maud’s html! macro so template structure is checked at build time rather than failing at runtime.
- Safe escaping with escape control: Rely on automatic escaping and selectively disable it via PreEscaped when inserting trusted HTML.
- Reusable component patterns: Compose pages from functions and implement Render for domain types to keep view logic maintainable.
- Framework-friendly output: Return Markup from Actix, Rocket, or Axum handlers to integrate templating into real web services.
Quick Start
Use the rust-maud skill to write a Maud html! template that renders an h1 element greeting the provided name.