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 }}

Example Output Code