use morgana::{morx, Component, RenderNode}; pub fn main() { let parent = morx! { ParentLayout { Child { "Hello world!" } } }; let text = morgana::render_tree_blocking(parent); println!("{text}") } struct ParentLayout { children: Vec } impl Component for ParentLayout { fn render(self: Box) -> RenderNode { morx!{ html lang = "en-US" { head { title = "test thing" } body = {self.children} } } } } struct Child { children: Vec } impl Component for Child { fn render(self: Box) -> RenderNode { morx! { p= {self.children} } } }