Simple and light JSX like syntax parser, written in Rust.
Spews out Node
struct with children and attributes attached.
- Examples
let node: Node = rsx!(<test data={"entry"}></test>);
let node: Node = rsx!(<test data={"entry"}>
{
["test", "test2"]
.iter()
.map(|x| {
rsx!(<node>
<children data={x}></children>
</node>)
})
.collect::<Vec<Node>>()
}
</test>);