use rdxl::{xhtml,xtype,xrender};
xtype!();
xtype!(
);
xrender!(MyList,
- {{ self.my_string }}
- {{ self.my_int }}
{{ for i in self.children.iter() {{
{{ if let MyListChildren::MyItem(my_item) = i {{
- MyItem: {{ my_item.my_bool }}
}} else if let MyListChildren::MyOtherItem(my_other_item) = i {{
- MyOtherItem: {{ my_other_item.my_char }}
}} }}
}} }}
);
fn main(){
println!("{}", xhtml!(
));
}