Modifier: underscored

Returns a lowercase and trimmed string separated by underscores. Underscores are inserted before uppercase characters (with the exception of the first character of the string), and in place of spaces as well as dashes.

string: Please and thank you
{{ string | underscored }}

Additional Reading

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

Last modified on March 31, 2016