aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/doc/tags/do.rst
blob: eca63d0ad05f8a0665ec1170219541630b84a33a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
``do``
======

.. versionadded:: 1.5
    The do tag was added in Twig 1.5.

The ``do`` tag works exactly like the regular variable expression (``{{ ...
}}``) just that it doesn't print anything:

.. code-block:: jinja

    {% do 1 + 2 %}