39min
Available filters
In construction
Liquid::Template.register_filter(Liquid::Filters::Find)
Liquid::Template.register_filter(Liquid::Filters::Get)
Liquid::Template.register_filter(Liquid::Filters::SmartDate)
Liquid::Template.register_filter(Liquid::Filters::Slice)
Liquid::Template.register_filter(Liquid::Filters::Flatten)
Liquid::Template.register_filter(Liquid::Filters::ToValues)
Liquid::Template.register_filter(Liquid::Filters::ToJson)
Liquid::Template.register_filter(Liquid::Filters::ToIso8601)
Liquid::Template.register_filter(Liquid::Filters::DistanceOfTimeInWords)
Liquid::Template.register_filter(Liquid::Filters::DistanceOfTimeInWordsToNow)
- in_time_zone: 'time_zone'
- time_zone. Any timezone listed in Timezones
JS
|
See Timezones for available values
- to_table: 'table_type', 'title', 'time_zone', 'format'
- table_type is either events or action_items
- time_zone. Any timezone listed in Timezones
- format can be ascii , markdown , atlassian_markdown
JS
|
Liquid built-in
- ceil: Rounds the input up to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.
- concat: Concatenates (joins together) multiple arrays. The resulting array contains all the elements from the input arrays.
- date: Converts a timestamp into another date format. The format for this syntax is the same as strftime.
- default: Allows you to specify a fallback in case a value doesn’t exist. default will show its value if the left side is nil, false, or empty.
- downcase: Makes each character in a string lowercase. It has no effect on strings which are already all lowercase.
- escape: Escapes a string by replacing characters with escape sequences (so that the string can be used in a URL, for example). It doesn’t change strings that don’t have anything to escape.
- escape_once: Escapes a string without changing existing escaped entities. It doesn’t change strings that don’t have anything to escape.
- floor: Rounds a number down to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.
- hmac_sha1: Converts a string into a SHA-1 hash using a hash message authentication code (HMAC). Pass the secret key for the message as a parameter to the filter.
- hmac_sha256: Converts a string into a SHA-256 hash using a hash message authentication code (HMAC). Pass the secret key for the message as a parameter to the filter.
- lstrip: Removes all whitespace (tabs, spaces, and newlines) from the beginning of a string. The filter does not affect spaces between words.
- replace_first: Replaces only the first occurrence of the first argument in a string with the second argument.
- round: Rounds an input number to the nearest integer or, if a number is specified as an argument, to that number of decimal places.
- slice: Returns a substring of 1 character beginning at the index specified by the argument passed in. An optional second argument specifies the length of the substring to be returned.
- sort: Sorts elements in an array by a property of an element in the array. The order of the sorted array is case-sensitive.
- split: Divides an input string into an array using the argument as a separator. split is commonly used to convert comma-separated items from a string to an array. Use with as_object to send data as an array, e.g.: {{ .comma_delimited_string | split: ',' | as_object }}. Without using as_object, the result will commonly be a string with concatenated values in the array.
- strip: Removes all whitespace (tabs, spaces, and newlines) from both the left and right side of a string. It does not affect spaces between words.
- truncate: truncate shortens a string down to the number of characters passed as a parameter. If the number of characters specified is less than the length of the string, an ellipsis (…) is appended to the string and is included in the character count.
- truncatewords: Shortens a string down to the number of words passed as the argument. If the specified number of words is less than the number of words in the string, an ellipsis (…) is appended to the string.
- upcase: Makes each character in a string uppercase. It has no effect on strings which are already all uppercase.
- where: Selects all the elements in an array where the key has the given value. {{ .get_all_alarms.body.alarms | where:"classification","malware" }}