Skip to main content

Module macros

Module macros 

Source
Expand description

The html! declarative macro.

Rust’s answer to Winged-Swift’s @HTMLBuilder / @HTMLFragmentBuilder result builders (Sources/WingedSwift/functions/HTMLFunctions.swift). It is sugar over the builder API, never a second code path — every form here expands to the same Element and Node calls you would write by hand, so there is exactly one renderer to keep correct.