Static Apps
You can also make static HTML/CSS/JS apps without Python. These can be updated and will reflect changes on the fly without the need for live reloading.
The main file in a static app is index.html
. If you want to handle 404 Not Found errors you can add a 404.html
file. Most of the heavy lifting is done by Starlette's StaticFiles middleware.
As Fishweb looks for ASGI apps by default, static apps need a config file with app_type
set to static
.
html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fishweb Static App</title>
</head>
<body>
<h1>Hello from Fishweb</h1>
</body>
</html>
yaml
app_type: static