Tutorials References Exercises Sign Up Menu
Create Website Get Certified Pro

Template Filter - title


Convert a text into using all capitalized words:

<p>{{ mytext|title }}</p>
Run Example »

Definition and Usage

The title filter returns the value with all words converted into having the first letter in upper case, and the rest of the word lower case.


Template filters are defined by using a pipe | character followed by the name of the filter.

{{ value|title }}