mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
Delimit comment in template using correct syntax
Enclose the comment in '{# #}' instead of beginning line with '#'.
This commit is contained in:
+2
-1
@@ -39,7 +39,8 @@ The ``use`` statement tells Twig to import the blocks defined in
|
|||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|
||||||
# blocks.html
|
{# blocks.html #}
|
||||||
|
|
||||||
{% block sidebar %}{% endblock %}
|
{% block sidebar %}{% endblock %}
|
||||||
|
|
||||||
In this example, the ``use`` statement imports the ``sidebar`` block into the
|
In this example, the ``use`` statement imports the ``sidebar`` block into the
|
||||||
|
|||||||
Reference in New Issue
Block a user