Macro fhtml::format

source ·
macro_rules! format {
    ($($t:tt)*) => { ... };
}
Expand description

Writes formatted HTML to a String.

Similar to std::format!, this macro returns an owned String with the formatted content.

The syntax and overall behaviour is identical to fhtml::write!, where more detailed documentation can be found.

§Examples

§Simple usage

fhtml::format!(<div>"Hello, World!"</div>); // "<div>Hello, World!</div>"