Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

Template Filter - capfirst


Write the animal as a header (with the first letter in upper case):

<h1>{{ animal|capfirst }}</h1>
Run Example »

Definition and Usage

The capfirst filter capitalizes the first letter of the value.


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

{{ value|capfirst }}