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