Liquid filters
Filters change the output of a Liquid object. They are used within an object and are separated by a pipe character.
Common filters
localedate
localedateInput
{{ invoice.invoiced_at | localedate }}Output
localedatetime
localedatetimeInput
{{ order.deliver_starts_at | localedatetime }}Output
timezone
Date filter referencetimezonenumber
numberInput
Output
currency
currencyInput
Output
newline_to_br
newline_to_brInput
Output
markdown
markdownInput
Output
bool_to_word
bool_to_wordInput
Output
to_words
to_wordsInput
Output
String filters
append
appendInput
Output
capitalize
capitalizeInput
Output
downcase
downcaseInput
Output
prepend
prependInput
Output
remove
removeInput
Output
remove_first
remove_firstInput
Output
truncate
truncateInput
Output
upcase
upcaseInput
Output
Maths filters
ceil
ceilInput
Output
divided_by
divided_byInput
floor
floorInput
Output
minus
minusInput
modulo
moduloplus
plusInput
round
roundInput
Output
times
timesInput
Array filters
first
firstInput
last
lastInput
sort
sortInput
Last updated