camel

The camel filter takes a series of words and camel cases them. All non alphanumeric characters are changed to spaces, all letters made lowercase, then the first letter of each word is uppercased (except for the first word) and then all spaces are removed.

{% set words = 'Big red watermellons' %}
{{ words|camel }} {# outputs bigRedWatermellons #}

< Back to the list of filters