kebab

The kebab filter takes a string and creates a lowercase version of it with words separated by dashes instead of spaces. It is useful for creating anchor links.

{{ 'apples and pears'|kebab }}
{# outputs "apples-and-pears" #}

< Back to the list of filters