Improve min/max syntax in template docs (#17384)

This commit is contained in:
Franck Nijhof 2021-04-10 15:30:32 +02:00 committed by GitHub
parent c77eaf4013
commit 2ebab6fb75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,8 +440,8 @@ Some of these functions can also be used in a [filter](https://jinja.palletsproj
- `round(x, "floor")` will always round down to `x` decimals
- `round(x, "ceil")` will always round up to `x` decimals
- `round(1, "half")` will always round to the nearest .5 value. `x` should be 1 for this mode
- Filter `max` will obtain the largest item in a sequence.
- Filter `min` will obtain the smallest item in a sequence.
- Filter `[x, y, ...] | max` will obtain the largest item in a sequence.
- Filter `[x, y, ...] | min` will obtain the smallest item in a sequence.
- Filter `value_one|bitwise_and(value_two)` perform a bitwise and(&) operation with two values.
- Filter `value_one|bitwise_or(value_two)` perform a bitwise or(\|) operation with two values.
- Filter `ord` will return for a string of length one an integer representing the Unicode code point of the character when the argument is a Unicode object, or the value of the byte when the argument is an 8-bit string.