updated docs

This commit is contained in:
Ilya Puchka
2018-10-01 22:16:43 +01:00
parent da6a0ccaca
commit 019d0cca76

View File

@@ -389,10 +389,10 @@ Filter accepts several arguments:
``filter`` ``filter``
~~~~~~~~~ ~~~~~~~~~
Applies filter by its name, provided as an argument. Applies the filter with the name provided as an argument to the current expression.
.. code-block:: html+django .. code-block:: html+django
{{ string|filter:myfilter }} {{ string|filter:myfilter }}
This expression will resolve `myfilter` variable and will apply filter with such name to `string` variable. This expression will resolve the `myfilter` variable, find a filter named the same as resolved value, and will apply it to the `string` variable. I.e. if `myfilter` variable resolves to string `uppercase` this expression will apply file `uppercase` to `string` variable.