From 4b8a0e5e7a002afe273d2fa67df1facd04195ea3 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 26 Dec 2011 11:21:22 +0100 Subject: [PATCH] added missing doc for the do tag --- doc/tags/do.rst | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 doc/tags/do.rst 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 %} -- 1.7.2.5