summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2010-11-18 20:38:25 -0800
committerBen Bangert <ben@groovie.org>2010-11-18 20:38:25 -0800
commit4018adea20ee73cfeeaebb69e95e4b00dd5cf22e (patch)
treec6ff0479255b5d23ae33f495f7290ab0ad603b5f /CHANGES.txt
parent47c9f884f72e6902c3b789ab9c4c08a6fabcfc6a (diff)
downloadpyramid-4018adea20ee73cfeeaebb69e95e4b00dd5cf22e.tar.gz
pyramid-4018adea20ee73cfeeaebb69e95e4b00dd5cf22e.tar.bz2
pyramid-4018adea20ee73cfeeaebb69e95e4b00dd5cf22e.zip
- URL Dispatch now uses the form ``{marker}`` to denote a replace marker in
the route pattern instead of ``:marker``. The old syntax is still backwards compatible and accepted. The new format allows a regular expression for that marker location to be used instead of the default ``[^/]+``, for example ``{marker:\d+}`` is now valid to require the marker to be digits.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index dbd774086..8aff366a6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,9 +7,11 @@ Features
- URL Dispatch now allows for replacement markers to be located anywhere
in the pattern, instead of immediately following a ``/``.
-- Added ``marker_pattern`` option to ``add_route`` to supply a dict of
- regular expressions to be used for markers in the pattern instead of the
- default regular expression that matched everything except a ``/``.
+- URL Dispatch now uses the form ``{marker}`` to denote a replace marker in
+ the route pattern instead of ``:marker``. The old syntax is still backwards
+ compatible and accepted. The new format allows a regular expression for that
+ marker location to be used instead of the default ``[^/]+``, for example
+ ``{marker:\d+}`` is now valid to require the marker to be digits.
- Add a ``pyramid.url.route_path`` API, allowing folks to generate relative
URLs. Calling ``route_path`` is the same as calling