final object filters

Custom liquid template filters

Constructors

Members

[+] final class First

Used to get the first element of arrays and strings:

Used to get the first element of arrays and strings:

{% assign array = "1,2,3,4,5" | split: "," %}
{{ array | first }}

The above snippet will render "1"

[+] final class Reverse

Used to reverse arrays:

Used to reverse arrays:

{% assign array = "1,2,3,4,5" | split: "," %}
{{ array | reverse }}