Liquid v0.9.1 Liquid.Filters.Functions View Source
Structure that holds all the basic filter functions used in Liquid 3.
Link to this section Summary
Functions
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
Makes each character in a string lowercase. It has no effect on strings which are already all lowercase
Returns a single or plural word depending on input number
Link to this section Functions
Link to this function
abs(input) View Source
Link to this function
append(input, operand) View Source
Link to this function
capitalize(input) View Source
Link to this function
ceil(input) View Source
Link to this function
ceil(input, precision) View Source
Link to this function
date(input, format \\ "%F %T") View Source
Link to this function
default(input, default_val \\ "") View Source
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
Link to this function
divided_by(input, operand) View Source
Link to this function
downcase(input) View Source
Makes each character in a string lowercase. It has no effect on strings which are already all lowercase.
Link to this function
escape(input) View Source
Link to this function
escape_once(input) View Source
Link to this function
first(array) View Source
Link to this function
floor(input) View Source
Link to this function
floor(input, precision) View Source
Link to this function
h(input) View Source
Link to this function
join(array, separator \\ " ") View Source
Link to this function
last(array) View Source
Link to this function
lstrip(arg) View Source
Link to this function
map(array, key) View Source
Link to this function
minus(value, operand) View Source
Link to this function
modulo(input, operand) View Source
Link to this function
newline_to_br(arg) View Source
Link to this function
pluralise(input, single, plural) View Source
Link to this function
pluralize(input, single, plural) View Source
Returns a single or plural word depending on input number
Link to this function
plus(value, operand) View Source
Link to this function
prepend(string, addition) View Source
Link to this function
remove(arg1, arg2) View Source
Link to this function
remove_first(string, operand) View Source
Link to this function
replace(string, from, to \\ "") View Source
Link to this function
replace_first(string, from, to \\ "") View Source
Link to this function
reverse(array) View Source
Link to this function
round(input) View Source
Link to this function
round(input, precision) View Source
Link to this function
rstrip(arg) View Source
Link to this function
size(input) View Source
Link to this function
slice(list, range) View Source
Link to this function
slice(list, from, to) View Source
Link to this function
sort(array) View Source
Link to this function
sort(array, key) View Source
Link to this function
split(arg1, arg2) View Source
Link to this function
strip(arg) View Source
Link to this function
strip_html(input) View Source
Link to this function
strip_newlines(arg) View Source
Link to this function
times(value, operand) View Source
Link to this function
truncate(input, l \\ 50, truncate_string \\ "...") View Source
Link to this function
truncatewords(input, words \\ 15) View Source
Link to this function
uniq(array) View Source
Link to this function
uniq(array, key) View Source
Link to this function
upcase(input) View Source
Link to this function
url_decode(input) View Source
Link to this function