From fafde808747ebe88b2ff65d3c915fd21efda83fc Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 23 Apr 2012 20:08:03 +0200 Subject: [PATCH] added more info in the docs --- doc/tags/inline.rst | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/doc/tags/inline.rst b/doc/tags/inline.rst index 23047eb..e4cf5ba 100644 --- a/doc/tags/inline.rst +++ b/doc/tags/inline.rst @@ -107,6 +107,27 @@ content is kept in each page (as in solution 2): {% endinline %} {% endblock %} +And here is the code for ``even.twig``: + +.. code-block:: jinja + + Some code + + {% block content1 %} + Some default content + {% endblock %} + + Some other code + + {% block content2 %} + Some default content + {% endblock %} + + Yet some other code + +The goal of the ``even.twig`` base template being to factor out the ``Some +code``, ``Some other code``, and ``Yet some other code`` parts. + The ``inline`` tag can be customized with the same options (``with``, ``only``, ``ignore missing``) as the ``include`` tag: -- 1.7.2.5