aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--book/src/filters.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/book/src/filters.md b/book/src/filters.md
index db660a2..fd55898 100644
--- a/book/src/filters.md
+++ b/book/src/filters.md
@@ -18,6 +18,20 @@ but are disabled by default. Enable them with Cargo features (see below for more
## Built-In Filters
+### abs
+
+Returns the absolute value.
+
+```
+{{ -2|abs }}
+```
+
+Output:
+
+```
+2
+```
+
### capitalize
Capitalize a value. The first character will be uppercase, all others lowercase: