You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement all the standard liquid filters from liquid 3.0
append - append a string e.g. {{ 'foo' | append:'bar' }} #=> 'foobar'
capitalize - capitalize words in the input sentence
ceil - rounds a number up to the nearest integer, e.g. {{ 4.6 | ceil }} #=> 5
date - reformat a date (syntax reference)
default - returns the given variable unless it is null or the empty string, when it will return the given value, e.g. {{ undefined_variable | default: "Default value" }} #=> "Default value"
truncate - truncate a string down to x characters. It also accepts a second parameter that will append to the string e.g. {{ 'foobarfoobar' | truncate: 5, '.' }} #=> 'foob.'
truncatewords - truncate a string down to x words
uniq - removed duplicate elements from an array, optionally using a given property to test for uniqueness
Implement all the standard liquid filters from liquid 3.0
b" | split:"" }} #=> ['a','b']