fasthtml
fasthtml copied to clipboard
The fastest way to create an HTML app
**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...
When I ran the example code https://docs.fastht.ml/tutorials/quickstart_for_web_devs.html#variables-in-urls and tried the example URL with incorrect data [127.0.0.1:5001/uma/five](http://127.0.0.1:5001/uma/five), I get a page containing the text `/uma/five` rather than an error.
Here's a minimum reproducible example: ``` from fasthtml.fastapp import * app,rt = fast_app() @rt("/") def get(): return Div( Pre(Code("No spaces!"), data_prefix="1"), Pre(Code("No spaces!"), data_prefix="1"), ) serve() ``` ``` $ curl...
* I have tried Google, no useful results * I have tried fastlite repo, no mention MiniDataApi spec sounds like something that'll be useful. Where can I find more about...
I want to have python functions which respond to different key presses. I'm trying to add an event listener but I can't figure out how to route it to a...
Wow! You just took this project out of my mind! With all these 'pure Python webapp' libraries using WebSockets, I wondered when someone would leverage HTMX. Anyway, is there a...
Adds another endpoint to `examples/basic_ws.py` which illustrates how to read data from the websocket. It is not clear from the existing example (or docs, currently) that you can specify a...
- [x] Intro - [x] Minimal view - [x] `*args` trick for building out content - [ ] Read files from disk - [ ] List articles view - [...
Removed unused args in toaster.py because it logs this error in the console. ``` .venv/lib/python3.12/site-packages/fasthtml/core.py:157: UserWarning: `resp has no type annotation and is not a recognised special name, so is...