use htmxpress::HtmxElement; use htmxpress_macros::Element; #[derive(Debug, Element)] struct Test { #[element("p")] #[before("Hello")] #[after("World")] el: String, } #[test] fn children_works() { let test = Test { el: "My".to_string(), }; let html = r#"

HelloMyWorld

"#; assert_eq!(html, test.to_htmx()); }