Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set replacements = { " ":"_", "ą":"a", "ę":"e", "ć":"c", "ł":"l", "ó":"o", "ź":"z", "ś":"s" } %}
- {% set przyklad = "ąĘ ćł óŹś" %}
- {{ przyklad }}
- {% set data = namespace(value=przyklad|lower) -%}
- {% for r in replacements -%}
- {% set data.value = data.value|replace(r, replacements[r]) -%}
- {% endfor -%}
- {% set przyklad = data.value -%}
- {{ przyklad }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement