Files
Twig/doc/filters/capitalize.rst
T
2011-09-27 08:43:35 +02:00

12 lines
233 B
ReStructuredText

``capitalize``
==============
The ``capitalize`` filter capitalizes a value. The first character will be
uppercase, all others lowercase:
.. code-block:: jinja
{{ 'my first car'|capitalize }}
{# outputs 'My first car' #}