Modifier: sentence_list


Turn a simple array into a friendly comma delimited list with the word “and” before the last item.

things:
  - batman
  - zombies
  - scrunchies
I like {{ things | sentence_list }}.
I like batman, zombies, and scrunchies.

Additional Reading

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

Last modified on March 31, 2016