Routes

联合创作 · 2023-09-20 21:52

Routes是采用Python实现的Rails的URL映射控制. Routes makes it easy to create pretty and concise URL's that are RESTful with little effort.

Speedy and dynamic URL generation means you get a URL with minimal cruft (no big dangling query args). Shortcut features like Named Routes cut down on repetitive typing.

Current features:

  • Named Routes
  • Sophisticated Route lookup and URL generation
  • Wildcard path's before and after static parts
  • Groupings syntax to allow flexible URL's to accommodate almost any need
  • Sub-domain support built-in
  • Conditional matching based on domain, cookies, HTTP method (RESTful), and more
  • Easily extensible utilizing custom condition functions and route generation functions
  • Extensive unit tests
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报