macro_rules! format { ($($t:tt)*) => { ... }; }
Expand description
Generates a String with formatted HTML content.
This macro functions similarly to std::format!, but is tailored for HTML
content, allowing direct embedding of expressions within curly braces {}.
§Examples
Simple HTML generation:
let output = fhtml::format! {
<div>{10 + 20}</div>
};
assert_eq!(output, "<div>30</div>");