Filters
slug
The slug filter returns a URL friendly version of the value.
{{ 'Hello, World!' | slug }}
{# outputs 'hello-world' #}The slug filter takes a separator value as the first argument:
{{ 'Hello, World!' | slug('_') }}
{# outputs 'hello_world' #}Arguments
| Argument | Description | Type |
|---|---|---|
separator | The separator | String |
language | The language. Defaults to en | String |
Last updated on