added more info in the docs

This commit is contained in:
Fabien Potencier
2012-04-23 20:08:03 +02:00
parent 2fa8224be4
commit fafde80874
+21
View File
@@ -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: