Filters are used to modify the output of variables and other values.
Filters modify the output of numbers, strings, variables, objects, and arrays. A filter is applied using a pipe character (|) followed by the filter name:
Copy
{{ variable | filter }}
You can chain multiple filters together, applying one after the other:
Copy
{{ "hello world" | capitalize | upcase }}
Some filters can take arguments which are specified after a colon (:) character:
Copy
{{ "hello world" | truncate: 5 }}
Check detailed documentation for each filter in the following sections: