Registry / web-framework / maud
library0.27.0rscratesunverified

Compile-time HTML templates with a Rust macro, ensuring type safety and performance.

# Cargo.toml [dependencies] maud = "0.27.0"
INSTALL
IMPORT
SIG · MAUD
M
maud
web-frameworkrustv0.27.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

html
use maud::html;

Renders a simple HTML page with a variable.

use maud::html; fn main() { let name = "world"; let markup = html! { h1 { "Hello, " (name) "!" } p { "This is a compile-time template." } }; println!("{}", markup.into_string()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.27.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
maud — cargo add maud · libregistry