filter_to_name (zotonic_mod_base v1.0.0-rc.17)

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.

Summary

Functions

to_name/2