Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 1 | ``capitalize`` |
2 | ============== | ||||
3 | |||||
4 | The ``capitalize`` filter capitalizes a value. The first character will be | ||||
5 | uppercase, all others lowercase: | ||||
6 | |||||
7 | .. code-block:: twig | ||||
8 | |||||
9 | {{ 'my first car'|capitalize }} | ||||
10 | |||||
11 | {# outputs 'My first car' #} |