-
-
Notifications
You must be signed in to change notification settings - Fork 8
Ability to configure the URL routing engine #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is Django's URL Resolver. It has a |
I drafted up a PR anticipating some upstream changes. Django would use this def compile_django_route(path: str) -> idom_router.CompiledPath:
django_route = RoutePattern(path)
return CompiledPath(django_route.regex, {k, v.to_python for k, v in django_route.converters.items()}) |
I will implement that router functionality within |
Currently is impossible to hijack
idom-router
internals to utilize something like Django's URL routing schema.We need some kind of way of configuring this behavior.
For example, within
idom-router.conf
perhaps there is a global calledROUTING_ENGINE: Callable
.The interface for this callable is up for debate.
The text was updated successfully, but these errors were encountered: