write!() { /* proc-macro */ }Expand description
Writes HTML content with embedded expressions into a buffer.
This macro uses std::write! to format HTML content, allowing the
inclusion of expressions within curly braces {}.
§Examples
Basic usage:
use std::fmt::Write;
let mut buffer = String::new();
fhtml::write!(buffer, <div>{1 + 1}</div>);
assert_eq!(buffer, "<div>2</div>");