patx/micropie
enabled nexted path args to map to positional handler args as they should
Commit eff8f45 · patx · 2025-02-18T13:10:54-05:00
Comments
No comments yet.
Diff
diff --git a/MicroPie.py b/MicroPie.py
index c3c77c5..c9e6860 100644
--- a/MicroPie.py
+++ b/MicroPie.py
@@ -237,6 +237,7 @@ class App:
path: str = scope["path"].lstrip("/")
path_parts: List[str] = path.split("/") if path else []
func_name: str = path_parts[0] if path_parts else "index"
+ func_args = path_parts[1:] # Remaining parts become function arguments
if func_name.startswith("_"):
status_code = 404
response_body = "404 Not Found"
diff --git a/setup.py b/setup.py
index 151960a..bf46a5d 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ Links
from distutils.core import setup
setup(name="MicroPie",
- version="0.9.9.2",
+ version="0.9.9.3",
description="A ultra micro web framework w/ Jinja2.",
long_description=__doc__,
author="Harrison Erd",