Rsx children scope placing

This commit is contained in:
2026-01-30 23:13:05 +01:00
parent 74e33fa4c2
commit e31c17ba41
4 changed files with 46 additions and 12 deletions
+8
View File
@@ -118,6 +118,10 @@ fn emit_node_scope(node: &RsxNode) -> TokenStream {
}
}
}
RsxNode::Expr(expr) => quote! {
r.child(#expr);
},
}
}
@@ -169,5 +173,9 @@ fn emit_node(node: &RsxNode) -> TokenStream {
RsxNode::If { .. } => panic!("Invalid if statement"),
RsxNode::For { .. } => panic!("Invalid for loop"),
RsxNode::Expr(expr) => quote! {
r.child(#expr);
},
}
}