Closed ZeroIntensity closed 8 months ago
Something like Django's urls.py could be integrated into view. The path to the file could be set as the loader_path in the config.
urls.py
loader_path
# paths.py from view import patterns, path from something import my_route patterns( path("/hello/world", "/path/to/file.py"), path("/", my_route) )
I think a patterns function could be more "pythonic", but a URL patterns variable could be allowed too:
patterns
# paths.py from view import path from something import my_route patterns = ( path("/hello/world", "/path/to/file.py"), path("/", my_route) )
No response
Feature description
Something like Django's
urls.py
could be integrated into view. The path to the file could be set as theloader_path
in the config.Feature example API
I think a
patterns
function could be more "pythonic", but a URL patterns variable could be allowed too:Anything else?
No response