FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's
FT"FastTags" into a library for creating server-rendered hypermedia applications. TheFastHTMLclass itself inherits fromStarlette, and adds decorator-based routing with many additions, Beforeware, automaticFTto HTML rendering, and much more.
Things to remember when writing FastHTML apps:
serve() for running uvicorn (if __name__ == "__main__" is not needed since it's automatic)Titled; note that that already wraps children in Container, and already includes both the meta title as well as the H1 element.me and any functionsFT components, which are a way to write HTML in a Pythonic way.