Liquid
Liquid is an open source template language. The basic feature are described here Introduction – Liquid template language or in more detail here Liquid for Designers · Shopify/liquid Wiki · GitHub . The implemantation in Manager actually uses dotLiquid the differences are summarized here DotLiquid for Designers · dotliquid/dotliquid Wiki · GitHub in particular Manager uses .Net date formatting. The language is extendible (by updates to Manager). The version used in Manager support additional filter including array filters useful in localisation
| Filter | Function performed |
|---|---|
| where: | Select all the objects in an array where a given attribute has a given value. |
| select: | Selects the value of a given attribute for each item in an array, and returns these values as an array. |
| map: | Standard liquid array operator. Creates an array of values by extracting the values of a named property from another object |
| uniq | Standard liquid array operator which removes any duplicate elements in an array. |
Code examples
{% assign NewVariable = objects | where: array_field, IndexValue %}
{% assign NewVariable = objects | select: array_field, IndexValue %}
{% assign NewVariable = objects | map: IndexValue | uniq %}