From ad9faef546de80fecec3944e73cc540ff92f982f Mon Sep 17 00:00:00 2001 From: Erik Gaasedelen Date: Fri, 9 Jan 2026 10:21:27 -0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20typo:=20put=3D'hx-post'=20=E2=86=92?= =?UTF-8?q?=20put=3D'hx-put'=20in=20=5Fverbs=20mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #617 --- fasthtml/core.py | 2 +- nbs/api/00_core.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fasthtml/core.py b/fasthtml/core.py index 4c9f0223..188be7a0 100644 --- a/fasthtml/core.py +++ b/fasthtml/core.py @@ -335,7 +335,7 @@ def url_path_for(self:HTTPConnection, name: str, **path_params): return URLPath(f"{self.scope['root_path']}{lp}", lp.protocol, lp.host) # %% ../nbs/api/00_core.ipynb -_verbs = dict(get='hx-get', post='hx-post', put='hx-post', delete='hx-delete', patch='hx-patch', link='href') +_verbs = dict(get='hx-get', post='hx-post', put='hx-put', delete='hx-delete', patch='hx-patch', link='href') def _url_for(req, t): "Generate URL for route `t` using request `req`" diff --git a/nbs/api/00_core.ipynb b/nbs/api/00_core.ipynb index 2932b473..7cfe9534 100644 --- a/nbs/api/00_core.ipynb +++ b/nbs/api/00_core.ipynb @@ -1171,7 +1171,7 @@ "outputs": [], "source": [ "#| export\n", - "_verbs = dict(get='hx-get', post='hx-post', put='hx-post', delete='hx-delete', patch='hx-patch', link='href')\n", + "_verbs = dict(get='hx-get', post='hx-post', put='hx-put', delete='hx-delete', patch='hx-patch', link='href')\n", "\n", "def _url_for(req, t):\n", " \"Generate URL for route `t` using request `req`\"\n", @@ -3972,4 +3972,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file From 76232e66686315a80dcc00e1b1366687a5823904 Mon Sep 17 00:00:00 2001 From: Erik Gaasedelen Date: Fri, 9 Jan 2026 10:22:34 -0800 Subject: [PATCH 2/2] clean --- nbs/api/00_core.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbs/api/00_core.ipynb b/nbs/api/00_core.ipynb index 7cfe9534..af6f3fe6 100644 --- a/nbs/api/00_core.ipynb +++ b/nbs/api/00_core.ipynb @@ -3972,4 +3972,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} \ No newline at end of file +}