Modifier: count


Count the number of items in an array.

fruit:
  - apples
  - bananas
  - bacon
{{ fruit | count }}
3

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016