chore: update readme and tests for autofmt

This commit is contained in:
Jonathan Kelley 2022-07-05 18:23:30 -04:00
parent 76581e7400
commit 575f92d2d4
3 changed files with 8 additions and 17 deletions

View file

@ -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 -

View file

@ -34,4 +34,11 @@ rsx! {
// Components
Component { ..Props {} }
// multiline
div {
class: "asdaskjdhaskjdjaslkdjlakdjaslkdjaslkd asdaskjdhaskjdjaslkdjlakdjaslkdjaslkdasdaskjdhaskjdjaslkdjlakdjaslkdjaslkd",
multiple: "asd",
"hi"
}
}

View file

@ -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 {}
// }