// ____ ______ __ ___ __
// / __ \ /_ __/ / |/ / / /
// / /_/ / / / / /|/ / / /
// / _, _/ / / / / / / / /___
// /_/ |_| /_/ /_/ /_/ /_____/
//
// rust macro for generating HTML from a rust-like syntaxuse rtml::rtml;
fn main() {
let html = rtml! {
Div {
class: "flex justify-center"
Span {
class: "text-pink-800 p-4"
"Hello World!"
}
}
};
println!("{}", html);
}<div class="flex justify-center">
<span class="text-pink-800 p-4"> Hello World! </span>
</div>