Skip to main content

html

Macro html 

Source
html!() { /* proc-macro */ }
Expand description

Build a VirtualNode from a token stream. Calls html_with_config with the following configuration:

  • Uses web_sys::Window as the RealDom.

§Examples

let div = html! { <div> Welcome to the html! procedural macro! </div> };