Liquid Filters

Liquid Filters

Filters may be used to modify the output of objects before either being stored in a variable or output to the page. Filters should be used as "objectName | filter_name:filterParams" (eg: {{ request.date | date: "MMM dd, YYYY" }}, or {% assign end_date = request.date | add_weeks:1 %}).

Multiple filters may be applied to an object at the same time and are processed in the same order that they appear in the markup. Eg: {% assign my_date = request.date | midnight | add_hours:3 %} will result in a different date than {% assign my_date = request.date | add_hours:3 | midnight %}

Utility Filters

Utility Filters may be used with multiple object types, and include filters useful for identifying and inspecting objects, setting default values, formatting objects as strings, and returning random objects and lists.

View Utility Filters 

String Filters

Use string filters to manipulate strings.

View String Filters 

Number Filters

Use number filters to convert, manipulate, and display numbers.

View Number Filters 

Date Filters

Use date filters to convert, manipulate, and display dates.

View Date Filters 

List Filters

Use list filters to create, manipulate, and display lists.

View List Filters 

Security Filters

Use security filters to encrypt and decrypt strings.

View Security Filters