diff options
author | Ben Bangert <ben@groovie.org> | 2015-05-17 20:17:08 -0700 |
---|---|---|
committer | Ben Bangert <ben@groovie.org> | 2015-05-17 20:17:08 -0700 |
commit | 153e8e4fc3c8df438113e3df4999d76fe01dc831 (patch) | |
tree | a1f579ccc3d7b02a3c8712744cc9c3820b9da9a7 | |
parent | bc77d0acdd38d4bdb5451953e452ae4c57f69a61 (diff) | |
parent | d5640ddb135b2a491ca30ec62e23c9d1b2ee833a (diff) | |
download | routes-153e8e4fc3c8df438113e3df4999d76fe01dc831.tar.gz |
Merge pull request #46 from huanghao/patch-4
Minor fix in docs
-rw-r--r-- | docs/setting_up.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/setting_up.rst b/docs/setting_up.rst index 8d0f984..6039c79 100644 --- a/docs/setting_up.rst +++ b/docs/setting_up.rst @@ -84,7 +84,7 @@ backslashes. Without the R you'd have to double every backslash. Another example:: - m.connect("archives/{year}/{month}/{day}", controller="archives", + m.connect("/archives/{year}/{month}/{day}", controller="archives", action="view", year=2004, requirements=dict(year=R"\d{2,4}", month=R"\d{1,2}")) @@ -344,6 +344,7 @@ Adding routes from a nested application gives the parent a list of routes to add to its mapper. These can be added with the ``.extend`` method, optionally providing a path prefix:: + from routes.route import Route routes = [ Route("index", "/index.html", controller="home", action="index"), ] |