use rdxl::{xhtml,xtype,xrender};
fn bs(s: String) -> String {
s.split_whitespace().collect::>().join(" ")
}
xtype!();
xtype!();
xrender!(MyType,
{{ for MyAttrChildren::MyAttrChild(c) in self.attr.children.iter() {{
- {{ self.attr.field }}:{{ c.field }}
}} }}
);
#[test]
fn complex_classes_as_attr(){
assert_eq!(bs(xhtml!(
/>)),
"".to_string()
);
}