use rdxl::{xhtml,xtype,xrender};
fn bs(s: String) -> String {
s.split_whitespace().collect::>().join(" ")
}
xtype!(/>);
xrender!(MyDisplayList,
{{ for d in self.children.iter() {{
{{ let MyDisplayListChildren::Display(d) = d; }}
- {{ d }}
}} }}
);
#[test]
fn display1() {
assert_eq!(
bs(xhtml!(
>{{ format!("a:{}",2) }}?>
>{{ format!("b:{}",4) }}?>
)),
""
);
}
#[test]
fn display2() {
assert_eq!(
bs(xhtml!(
>nested
?>
)),
""
);
}