feat: allow ifchains and for loops
This commit is contained in:
1 parent
2dd2d7fe66
commit
6cd87796f2
6 files changed
+82
-29
No files matched your search
@@ -34,5 +34,6 @@ twoway![
|
||||
commentshard,
|
||||
emoji,
|
||||
messy_indent,
|
||||
long_exprs
|
||||
long_exprs,
|
||||
ifchain_forloop
|
||||
];
|
||||
@@ -0,0 +1,13 @@
|
||||
rsx! {
|
||||
// Does this work?
|
||||
for i in b {
|
||||
// Hey it works?
|
||||
div {}
|
||||
}
|
||||
|
||||
// Some ifchain
|
||||
if a > 10 {
|
||||
//
|
||||
rsx! { div {} }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user