Available Liquid filters
Rootly built-in
find
-
find: arg1, 'arg2'
-
arg1
. String -
arg2
. String
-
get
-
get: 'arg'
arg
. String
smart_date
-
smart\_date: 'arg'
arg
. String
-
This is using https://github.com/mojombo/chronic under the hood.
slice
-
slice: '\*arg'
-
arg
. String -
… As many args as you need
-
flatten
- flatten
to_values
-
to\_values: 'key'
key
is optional
to_json
to\_json
to_iso8601
to\_iso8601
distance_of_time_in_words
-
distance\_of\_time\_in\_words: 'arg', 'precise'
-
arg
. String (optional) -
precise
. String (optional)
-
distance_of_time_in_words_to_now
-
distance\_of\_time\_in\_words\_to\_now: 'precise'
precise
. String (optional)
in_time_zone
-
in\_time\_zone: 'time\_zone'
time\_zone
. Any timezone listed in Timezones
See Timezones for available values
to_table
-
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 , html, atlassian_markdown
-
regex_replace
Global replace
-
regex\_replace: 'regex', 'replacement'
-
regexp
a ruby regular expression -
replacement
a ruby regular expression
-
regex_replace_first
First match replace
-
regex\_replace\_first: 'regex', 'replacement'
-
regexp
a ruby regular expression -
replacement
a ruby regular expression
-
regex_remove
Global match remove
-
regex\_remove: 'regex'
regexp
a ruby regular expression
regex_remove_first
First match remove
-
regex\_remove\_first: 'regex'
- regexp a ruby regular expression
dasherize
dasherize
parameterize
-
parameterize
separator
(default to ’-‘)
camelize
camelize
titleize
titleize
singularize
singularize
pluralize
pluralize
humanize
humanize
shuffle
shuffle
Liquid built-in
shortener
shortener
Liquid built-in
Was this page helpful?