to_name

Map a string to a name. That is a lowercased string with only [a-z0-9_] characters.

Example:

{{ "Hello World!"|to_name }}

Results in the string value hello_world.

Edit on GitHub

stringify Strings toc

Referred by

Filters

Filters transform template variables before they are rendered.