Modifier: is_alpha


Returns true if string contains only alphabetic characters. Numbers, punctuation, whitespace, and another other special characters will cause a false.

secret_phrase: abcdefg
even_more_secret_phrase: abc123
{{ if secret_phrase | is_alpha }}
{{ if even_more_secret_phrase | is_alpha }}
true
false

Additional Reading

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

Last modified on March 31, 2016