fasthtml icon indicating copy to clipboard operation
fasthtml copied to clipboard

[FEATURE] Document compositing multiple applications and multi-file design

Open pydanny opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

In the routing docs we need to explain how to bring in routes from different modules or applications into the main route.

Describe the solution you'd like

Create a clear, concise, interesting example. Reference FastHTML Gallery and other projects that leverage this technique.

Implementations

  1. FastHTML Gallery

Problem solved Explain what problem this feature would solve and how it would benefit users of the library:

Additional context Add any other context or screenshots about the feature request here.

Confirmation Please confirm the following:

  • [x] I have checked the existing issues and pull requests to ensure this feature hasn't been requested before.
  • [x] I have read the project's documentation to ensure this feature doesn't already exist.

pydanny avatar Aug 20 '24 23:08 pydanny

fh-about is also a useful example. (Not just for compositing applications, but for multi-file layout more generally.)

jph00 avatar Sep 05 '24 06:09 jph00

In the latest version of fasthtml, There is APIRouter class which can be used for multi-file design to describe the routes. The routes explanation section is incomplete but there is link where you can find the explanation of the APIs of core module.

docs of core

FazleRabbbiferdaus172 avatar Oct 27 '24 18:10 FazleRabbbiferdaus172