aio-libs / aio-libs/aiohttp

access subapp routes via <app-name>:<route-name>

Offen
#2,314 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
16.5k
Forks
2.4k
Ø Merge
17 Std. 22 Min.
Gemergte PRs (30 T.)
212

Beschreibung

From aio-libs/aiohttp-jinja2#163

> I think sub app routes should be available via `subapp:view-name`, which would require a `route_name` argument to `add_subapp`.

This would roughly mirror django routing and would make stuff like the `url()` jinja function work with subapps.

It would also make all `url_for` calls refering to subapps more succinct.

I think @asvetlov has some thoughts on implementation.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.