Div { H1("Title") }.Attr("class", "footer")
The best I could think off were designated initializers like:
Div{{.class = "footer"}, B{"some text"}}
Div { H1("Title") }.Attr("class", "footer")