Skip to content

Commit 75858d1

Browse files
authored
handlers.ipynb : fix typo
1 parent efd1916 commit 75858d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbs/ref/handlers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
"id": "bfbaa72c",
297297
"metadata": {},
298298
"source": [
299-
"The `rt` decorator modifies the `yoyo` function by adding an `rt()` method. This method returns the route path associated with the handler. It's a convenient way to reference the route of a handler function dynamically.\n",
299+
"The `rt` decorator modifies the `yoyo` function by adding a `to()` method. This method returns the route path associated with the handler. It's a convenient way to reference the route of a handler function dynamically.\n",
300300
"\n",
301301
"In the example, `yoyo.to()` is used as the value for `hx_post`. This means when the div is clicked, it will trigger an HTMX POST request to the route of the `yoyo` handler. This approach allows for flexible, DRY code by avoiding hardcoded route strings and automatically updating if the route changes.\n",
302302
"\n",

0 commit comments

Comments
 (0)