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
This commit is contained in:
lord63 2016-04-02 05:05:11 +08:00 committed by David Lord
parent da0ebb9b78
commit e0a8fd3162
2 changed files with 4 additions and 0 deletions

View file

@ -751,6 +751,8 @@ The following converters are available:
`int` accepts integers
`float` like `int` but for floating point values
`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`.

View file

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