Page History
...
The abbreviate filter will abbreviate a string using an ellipsis. It takes one argument which is the max width of the desired output including the length of the ellipsis.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The abs filter is used to obtain the absolute value.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The capitalize filter will capitalize the first letter of the string.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The date filter is used to format an existing java.util.Date object. The filter will construct a java.text.SimpleDateFormat using the provided pattern and then use this newly created SimpleDateFormat to format the provided Date object.
The alternative way to use this filter is to use it on a string but then provide two arguments. The first is the desired pattern for the output and the second is the existing format used to parse the input string into a java.util.Date object.
Example : If todayDate is a java.util.Date object |
|
|
Output |
|
Example 2 |
|
|
Output |
2017-12-25 |
Anchor | ||||
---|---|---|---|---|
|
The default filter will render a default value if and only if the object being filtered is empty. A variable is empty if it is null, an empty string, an empty collection, or an empty map.
Example |
|
|
|
|
Anchor | ||||
---|---|---|---|---|
|
The escape filter will turn special characters into safe character references in order to avoid XSS vulnerabilities.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The first filter will return the first item of a collection, or the first letter of a string.
Example |
|
|
Output |
|
Example 2 |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8b46565d-7f5c-4bb1-a820-d51f975b3355"><ac:plain-text-body><![CDATA[
{{ [ "b", "a", "c" ] |
| first }} |
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The join filter will concatenate all items of a collection into a string. An optional argument can be given to be used as the separator between items.
Example |
|
|
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
Example 2 |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="104ad409-d2a7-4a69-9ced-95c343cdeaa0"><ac:plain-text-body><![CDATA[
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The last filter will return the last item of a collection, or the last letter of a string.
Example |
|
|
Output |
|
Example 2 |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="09397f1b-8f07-47e4-8e24-33042612a6f3"><ac:plain-text-body><![CDATA[
|
|
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The length filter returns the number of items of collection, map or the length of a string.
Example |
|
|
Output |
|
Example 2 |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The lower filter makes an entire string lower case.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The merge filter returns a new map, list or array that is the result of merging two maps, lists or arrays together.
Note | ||
---|---|---|
| ||
Keys in the second map will overwrite the first map keys. |
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The numberformat filter is used to format a decimal number. Behind the scenes it uses java.text.DecimalFormat.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The raw filter prevents the output of an expression from being escaped by the autoescaper. The raw filter must be the very last operation performed within the expression otherwise the autoescaper will deem the expression as potentially unsafe and escape it regardless.
Note | ||
---|---|---|
| ||
If the raw filter is not the last operation performed then the expression will be escaped. |
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The replace filter returns a string that is the result of replacing any substrings matching keys in a map with the respective values.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The rsort filter will sort a list in reversed order. The items of the list must implement Comparable.
Example |
|
|
Output |
|
|
]]></ac:plain-text-body></ac:structured-macro>
Anchor | ||||
---|---|---|---|---|
|
The slice filter returns a portion of a list, array, or string. The indexing starts at 0.
Example |
|
|
Output |
|
Example 2 |
|
|
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
|
Anchor | ||||
---|---|---|---|---|
|
The sort filter will sort a list. The items of the list must implement Comparable.
Example |
|
|
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
|
Anchor | ||||
---|---|---|---|---|
|
The title filter will capitalize the first letter of each word.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The trim filter is used to trim whitespace off the beginning and end of a string.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The upper filter makes an entire string upper case.
Example |
|
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The urlencode filter translates a string into application/x-www-form-urlencoded format using the UTF-8 encoding scheme.
Example |
|
|
]]></ac:plain-text-body></ac:structured-macro>
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The lines filter will split a string by its line breaks with each line becoming an element in a list.
Example |
|
|
Output |
|