Modifier: contains_all

Search a string against multiple needles and return true if all are found, otherwise false. Case-insensitive.

summary: "It was the best of times, it was the worst of times."
{{ if summary | contains_all:best:worst }}
{{ if summary | contains_all:best:better }}

Additional Reading

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

Last modified on October 17, 2016