WinterFramework / winter

Web Framework with focus on python typing, dataclasses and modular design
MIT License
17 stars 18 forks source link

Reverse routing #117

Closed mofr closed 5 years ago

mofr commented 5 years ago

It should look like:

winter.router.reverse(SomeController.some_method, some_arg='some_value')

reverse should return rendered url template.

Additional context Spring implementation: https://github.com/resthub/springmvc-router#reverse-routing Django implementation: https://docs.djangoproject.com/en/2.2/ref/urlresolvers/#reverse

andrey-berenda commented 5 years ago

Done in https://github.com/mofr/winter/pull/121