Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

Template Filter - title


Example

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.


Syntax

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

{{ value|title }}