{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/0cae2878acf9f67e7cc6c06c55877ffd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0cae2878acf9f67e7cc6c06c55877ffd","url":"https://api.github.com/users/shimizukawa","login":"shimizukawa","id":151623},"milestone":{"state":"open","open_issues":1,"url":"https://api.github.com/repos/aodag/WebDispatch/milestones/1","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/39a5c2ac028a42721c6a8ded3de6258a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"39a5c2ac028a42721c6a8ded3de6258a","url":"https://api.github.com/users/aodag","login":"aodag","id":218344},"title":"1.0b3","description":null,"number":1,"closed_issues":0,"created_at":"2011-11-08T13:18:48Z"},"assignee":null,"labels":[],"updated_at":"2011-11-08T15:39:30Z","closed_at":null,"comments":1,"url":"https://api.github.com/repos/aodag/WebDispatch/issues/1","body":"    app = URLDispatcher()\r\n    app.add_url('public', '/public*', public_page)\r\n\r\nこのようにad_urlを呼び出すと /public/ にマッチしますが、 /public_spam にはマッチしません。また、'public/*' と書くと/public/にマッチしません。このあたり、暗黙ルールがあるようでApacheのrewrite_ruleとの違いに戸惑います。\r\n\r\n参照側について、\r\n\r\n    def public_page(request):\r\n        path = request.path_info\r\n\r\nこのように取り出したとき、pathは /style/base.css のようになりますが、pathの途中から始まるものが / 始まりだと違和感があります。また、urljoin('/public', '/style/base.css') は '/style/base.css' になってしまうなど、開発者が気をつけるべき事(バグの元)が増えてしまうように思います。\r\n","html_url":"https://github.com/aodag/WebDispatch/issues/1","title":"URLDispatcher はwildcard urlを扱えますが書式に違和感があります","number":1,"id":2172150,"created_at":"2011-11-08T08:54:56Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/39a5c2ac028a42721c6a8ded3de6258a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"39a5c2ac028a42721c6a8ded3de6258a","url":"https://api.github.com/users/aodag","login":"aodag","id":218344},"updated_at":"2011-11-08T15:39:30Z","url":"https://api.github.com/repos/aodag/WebDispatch/issues/comments/2669005","body":"ひとまず * は / の後のみ利用可能\r\n\r\n/public/* によって\r\n/public はマッチしない\r\n/public/ はマッチする PATH_INFO=''\r\n/public/a もマッチする PATH_INFO='a'\r\nという動作です。","id":2669005,"created_at":"2011-11-08T15:39:30Z"}}