Introduction

The title filter is used to capitalize the first letter of each word in a string, converting the remaining letters to lowercase. This filter is useful for formatting titles or names in a standardized way.

Example of Use

Example of how to use the title filter to capitalize each word in a string:
{% set text = 'hello world' %}
{{ text|title }}

Output Example of the Code

Result of `title` Filter