updated docs to match new Werkzeug docs
This commit is contained in:
parent
4c76607553
commit
10159e5464
7 changed files with 82 additions and 78 deletions
|
|
@ -108,12 +108,12 @@ template. This template will load jQuery as above and have a little form
|
|||
we can add two numbers and a link to trigger the function on the server
|
||||
side.
|
||||
|
||||
Note that we are using the :meth:`~werkzeug.MultiDict.get` method here
|
||||
which will never fail. If the key is missing a default value (here ``0``)
|
||||
is returned. Furthermore it can convert values to a specific type (like
|
||||
in our case `int`). This is especially handy for code that is
|
||||
triggered by a script (APIs, JavaScript etc.) because you don't need
|
||||
special error reporting in that case.
|
||||
Note that we are using the :meth:`~werkzeug.datastructures.MultiDict.get`
|
||||
method here which will never fail. If the key is missing a default
|
||||
value (here ``0``) is returned. Furthermore it can convert values to
|
||||
a specific type (like in our case `int`). This is especially handy for
|
||||
code that is triggered by a script (APIs, JavaScript etc.) because you
|
||||
don't need special error reporting in that case.
|
||||
|
||||
The HTML
|
||||
--------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue