view.py icon indicating copy to clipboard operation
view.py copied to clipboard

Preflight Component Support

Open ZeroIntensity opened this issue 1 year ago • 0 comments

Proposal:

Before #12 is implemented, view.py should introduce some batteries-detached support for various component libraries. This is most prevalent with #118, but that's more of a full-fledged React library - users might want something more simple.

Namely, view.py will need to implement these four things:

  • Finally fix #8, and introduce JSX-like syntax.
  • Introduce native support for htpy
  • Documenting and polishing the old components API, and get it ready for use by #12.
  • Finally, a fork of pyright that includes JSX syntax. Although, this will not be part of this issue. I'll likely get to this after stable release.

I do like htpy's approach to HTML-in-Python through subscripts - it's something that our own component API could consider.

ZeroIntensity avatar Jun 26 '24 14:06 ZeroIntensity