Module liquid::filters

source ·

Functions

Returns the absolute value of a number.
Convert an array into a sentence.
Limits a number to a minimum value.
Limits a number to a maximum value.
Remove nulls from an iterable. For hashes, you can specify which property you want to filter out if it maps to Null.
Removes all whitespaces (tabs, spaces, and newlines) from the beginning of a string.
Extract property from the Value::Object elements of an array
Replaces every newline (\n) with an HTML line break (<br>).
Receives a Value::Array as an input. Returns a copy of the input with the last element removed.
Receives a Value::Array as an input. Returns a copy of the input with the given value appended at the end.
Reverses the order of the items in an array. reverse cannot reverse a string.
Removes all whitespace (tabs, spaces, and newlines) from the right side of a string.
Receives a Value::Array as an input. Returns a copy of the input with the first element removed.
Removes all whitespace (tabs, spaces, and newlines) from both the left and right side of a string.
Removes any newline characters (line breaks) from a string.
truncate shortens a string down to the number of characters passed as a parameter.
Removes any duplicate elements in an array.
Receives a Value::Array as an input. Returns a copy of the input with the given value appended at the beginning.