mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
chore: update readme and tests for autofmt
This commit is contained in:
parent
76581e7400
commit
575f92d2d4
3 changed files with 8 additions and 17 deletions
|
@ -7,7 +7,7 @@ This crate formats rsx! by parsing call bodies and pretty-printing them back out
|
|||
# Todo:
|
||||
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
|
||||
- [ ] RSX edits overstepping each other
|
||||
- [ ] Collapse components and elements under syntax -
|
||||
|
|
|
@ -34,4 +34,11 @@ rsx! {
|
|||
|
||||
// Components
|
||||
Component { ..Props {} }
|
||||
|
||||
// multiline
|
||||
div {
|
||||
class: "asdaskjdhaskjdjaslkdjlakdjaslkdjaslkd asdaskjdhaskjdjaslkdjlakdjaslkdjaslkdasdaskjdhaskjdjaslkdjlakdjaslkdjaslkd",
|
||||
multiple: "asd",
|
||||
"hi"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,19 +12,3 @@ macro_rules! twoway {
|
|||
}
|
||||
|
||||
twoway!("comments" => comments);
|
||||
|
||||
// rsx! {
|
||||
// div { class: "asdasd", "hello world" }
|
||||
// h1 {
|
||||
// // Important handler
|
||||
// onclick: move |_| {
|
||||
// let a = 10;
|
||||
// },
|
||||
|
||||
// div { "hello" }
|
||||
|
||||
// // Important handler
|
||||
// "Goodbye world"
|
||||
// }
|
||||
// Component {}
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue