Deploy a FastHTML app with Modal

This example shows how you can deploy a FastHTML app with Modal. FastHTML is a Python library built on top of HTMX which allows you to create entire web applications using only Python.

The integration is pretty simple, thanks to the ASGI standard. You just need to define a function returns your FastHTML app and is decorated with app.function and modal.asgi_app.