dioxus/packages/autofmt
Jon Kelley 67dc6e6017
feat: implement type magic to allow strings, format args, and other types directly in rsx (#550)
* feat: implement type magic

* chore: undo example

* fix: let tests pass

* chore: add generic to allow any nesting of iterators

* Chore: remove comments

* chore: update rsx usage

* chore: use cleaner version of generic IntoVnode

* chore: don't derive default for lfietimed thing

* chore: remove latent comment

* fix: accept a third parameter
2022-09-12 22:49:04 -07:00
..
src feat: implement type magic to allow strings, format args, and other types directly in rsx (#550) 2022-09-12 22:49:04 -07:00
tests fix: autofmt on single line rsx calls 2022-07-07 02:06:50 -04:00
Cargo.toml Renderers are now packages, not features. (#387) 2022-07-09 15:15:20 -04:00
README.md chore: update readme and tests for autofmt 2022-07-05 18:23:30 -04:00

This crate autofmts blocks of rsx!

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
  • Nested RSX calls (important) - unnecessary but desirable
  • RSX edits overstepping each other
  • Collapse components and elements under syntax -
  • Don't eat comments in exprs
  • Format regular exprs
  • Fix prettyplease around chaining
  • Don't eat comments in prettyplease