From: Fabien Potencier Date: Thu, 22 Dec 2011 18:32:51 +0000 (+0100) Subject: added doc for the flush tag X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5ae6e13aac5e5b0a26cc555c28090c21d61139c9;p=web%2Fkonrad%2Ftwig.git added doc for the flush tag --- diff --git a/doc/tags/flush.rst b/doc/tags/flush.rst new file mode 100644 index 0000000..c44d990 --- /dev/null +++ b/doc/tags/flush.rst @@ -0,0 +1,17 @@ +``flush`` +========= + +.. versionadded:: 1.5 + The use tag was added in Twig 1.5. + +The ``flush`` tag tells Twig to flush the output buffer: + +.. code-block:: jinja + + {% flush %} + +.. note:: + + Internally, Twig uses the PHP `flush`_ function. + +.. _`flush`: http://php.net/flush diff --git a/doc/tags/index.rst b/doc/tags/index.rst index df14182..23ab6fe 100644 --- a/doc/tags/index.rst +++ b/doc/tags/index.rst @@ -18,3 +18,4 @@ Tags spaceless autoescape raw + flush