Browse Source

Add two missing converters for flask in the docs

All converters are from werkzeug's builtin converters.

Documentation: http://werkzeug.pocoo.org/docs/dev/routing/#builtin-converters
pull/1489/merge
lord63 9 years ago committed by David Lord
parent
commit
e0a8fd3162
  1. 2
      docs/api.rst
  2. 2
      docs/quickstart.rst

2
docs/api.rst

@ -751,6 +751,8 @@ The following converters are available:
`int` accepts integers `int` accepts integers
`float` like `int` but for floating point values `float` like `int` but for floating point values
`path` like the default but also accepts slashes `path` like the default but also accepts slashes
`any` matches one of the items provided
`uuid` accepts UUID strings
=========== =============================================== =========== ===============================================
Custom converters can be defined using :attr:`flask.Flask.url_map`. Custom converters can be defined using :attr:`flask.Flask.url_map`.

2
docs/quickstart.rst

@ -204,6 +204,8 @@ The following converters exist:
`int` accepts integers `int` accepts integers
`float` like `int` but for floating point values `float` like `int` but for floating point values
`path` like the default but also accepts slashes `path` like the default but also accepts slashes
`any` matches one of the items provided
`uuid` accepts UUID strings
=========== =============================================== =========== ===============================================
.. admonition:: Unique URLs / Redirection Behavior .. admonition:: Unique URLs / Redirection Behavior

Loading…
Cancel
Save