From: Fabien Potencier Date: Mon, 26 Dec 2011 10:21:22 +0000 (+0100) Subject: added missing doc for the do tag X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4b8a0e5e7a002afe273d2fa67df1facd04195ea3;p=konrad%2Ftwig.git added missing doc for the do tag --- diff --git a/doc/tags/do.rst b/doc/tags/do.rst new file mode 100644 index 0000000..eca63d0 --- /dev/null +++ b/doc/tags/do.rst @@ -0,0 +1,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 %}