rsx params

This commit is contained in:
2026-01-30 21:14:41 +01:00
parent e85257a10e
commit 91f0878edc
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -20,7 +20,7 @@ impl Parse for RsxRoot {
pub enum RsxNode {
Text(LitStr),
Component(Ident),
Component(Expr),
Mount(Ident),
If {
deps: Vec<Dep>,
@@ -116,6 +116,7 @@ impl Parse for RsxNode {
return Ok(RsxNode::Text(input.parse()?));
}
// Component: path (e.g. HelloWorld) or struct init (e.g. HelloWorld { t: 10 })
Ok(RsxNode::Component(input.parse()?))
}
}