added doc for the flush tag
authorFabien Potencier <fabien.potencier@gmail.com>
Thu, 22 Dec 2011 18:32:51 +0000 (19:32 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 22 Dec 2011 18:32:51 +0000 (19:32 +0100)
doc/tags/flush.rst [new file with mode: 0644]
doc/tags/index.rst

diff --git a/doc/tags/flush.rst b/doc/tags/flush.rst
new file mode 100644 (file)
index 0000000..c44d990
--- /dev/null
@@ -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
index df14182..23ab6fe 100644 (file)
@@ -18,3 +18,4 @@ Tags
     spaceless
     autoescape
     raw
+    flush