aio-libs / aio-libs/aiohttp

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

Đang mở
#2,314 12 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
16.5k
Fork
2.4k
Merge trung bình
17 giờ 22 phút
Pull request đã merge (30 ngày)
212

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.