chore: update readme and tests for autofmt
This commit is contained in:
1 parent
76581e7400
commit
575f92d2d4
3 files changed
+8
-17
No files matched your search
@@ -7,7 +7,7 @@ This crate formats rsx! by parsing call bodies and pretty-printing them back out
|
|||||||
# Todo:
|
# Todo:
|
||||||
Sorted roughly in order of what's possible
|
Sorted roughly in order of what's possible
|
||||||
|
|
||||||
- [ ] Oneline rsx! calls - blocker because this wrecks formatting
|
- [x] Oneline rsx! calls - blocker because this wrecks formatting
|
||||||
- [ ] Nested RSX calls (important) - unnecessary but desirable
|
- [ ] Nested RSX calls (important) - unnecessary but desirable
|
||||||
- [ ] RSX edits overstepping each other
|
- [ ] RSX edits overstepping each other
|
||||||
- [ ] Collapse components and elements under syntax -
|
- [ ] Collapse components and elements under syntax -
|
||||||
|
|||||||
@@ -34,4 +34,11 @@ rsx! {
|
|||||||
|
|
||||||
// Components
|
// Components
|
||||||
Component { ..Props {} }
|
Component { ..Props {} }
|
||||||
|
|
||||||
|
// multiline
|
||||||
|
div {
|
||||||
|
class: "asdaskjdhaskjdjaslkdjlakdjaslkdjaslkd asdaskjdhaskjdjaslkdjlakdjaslkdjaslkdasdaskjdhaskjdjaslkdjlakdjaslkdjaslkd",
|
||||||
|
multiple: "asd",
|
||||||
|
"hi"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -12,19 +12,3 @@ macro_rules! twoway {
|
|||||||
}
|
}
|
||||||
|
|
||||||
twoway!("comments" => comments);
|
twoway!("comments" => comments);
|
||||||
|
|
||||||
// rsx! {
|
|
||||||
// div { class: "asdasd", "hello world" }
|
|
||||||
// h1 {
|
|
||||||
// // Important handler
|
|
||||||
// onclick: move |_| {
|
|
||||||
// let a = 10;
|
|
||||||
// },
|
|
||||||
|
|
||||||
// div { "hello" }
|
|
||||||
|
|
||||||
// // Important handler
|
|
||||||
// "Goodbye world"
|
|
||||||
// }
|
|
||||||
// Component {}
|
|
||||||
// }
|
|
||||||
Reference in new issue
Block a user