rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.32k stars 38 forks source link

Page Rework! #62

Closed mad-moo closed 2 weeks ago

mad-moo commented 3 months ago

A lot of discussions have come up regarding pages:

  1. It's weird that pages inherit from rio.Component, rather than rio.Page. It's even more confusing, that in addition to the component there is a rio.Page object, but that one only stores metadata.

  2. Redirects are an often needed feature. While they can be implemented using Guards, doing so is rather ugly. Add a proper rio.Redirect class.

  3. Instead of specifying all pages in an app, find them automatically from the pages directory.

Anything else?