Skip to content

An extension of fasthtml based framework for ootb web solutions in python.

License

Notifications You must be signed in to change notification settings

josead/fasthtml-extn

Repository files navigation

FastHTML-Extn

FastHTML-Extn is a small and opinionated framework for building web applications. It provides a simple and intuitive way to create dynamic HTML pages using FastHTML.

It's inspired by Next.js App approach.

Install

pip install fasthtml-extn

Usage

from fasthtml_extn import create_app, serve

app, rt = create_app(live=False)

serve()

Features

  • Autogeneration of routes based on folder structure.
  • Layouts ...
  • Pages ...

TODO:

  • Route pages like app/**/*/page.py
  • Route layouts like app/**/*/layout.py
  • Route expected errors like app/**/*/exception.py
  • [] Route not found like app/**/*/not_found.py
  • [] Route apis like app/**/*/router.py
  • [] Add more tests

Ideas:

  • App Seeding with ootb working apps (similar to react-create-app)
  • Add more components as helpers. Maybe those should be on it's own library help needed here
  • Auto creation of folders: ask user from CLI
  • Create a CLI for adding pages or routes

Contributing

We welcome contributions from the community! If you have any bug reports, feature requests, or pull requests, please submit them to our GitHub repository.

License

FastHTML-Extn is released under the MIT License. See the LICENSE file for more information.

About

An extension of fasthtml based framework for ootb web solutions in python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages