Filters

Reference documentation for the Liquid filters available in Easol themes.

Filters modify the output of Liquid objects and variables.

Filters are used within output tags ({{ }}) or when assigning variables, and are separated by the pipe (|) character. Multiple filters can be chained together and are applied from left to right.

For example:

{{ "book" | capitalize | append: "Yoga " }}

renders:

Book Yoga

Easol filters

The following filters are provided by Easol in addition to the standard Liquid filters.

Standard Liquid filters

Easol also supports the standard filters provided by Liquid, including:

  • abs
  • append
  • at_least
  • at_most
  • capitalize
  • ceil
  • compact
  • concat
  • date
  • default
  • divided_by
  • downcase
  • escape
  • escape_once
  • first
  • floor
  • join
  • last
  • lstrip
  • map
  • minus
  • modulo
  • newline_to_br
  • plus
  • prepend
  • remove
  • remove_first
  • remove_last
  • replace
  • replace_first
  • replace_last
  • reverse
  • round
  • rstrip
  • size
  • slice
  • sort
  • sort_natural
  • split
  • strip
  • strip_html
  • strip_newlines
  • sum
  • times
  • truncate
  • truncatewords
  • uniq
  • upcase
  • url_decode
  • url_encode
  • where

For complete documentation on the standard Liquid filters, see the official Liquid filter reference.

On this page