aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/doc/tags/block.rst
blob: e38048232503012b2332ee02372b9139f59d22f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
``block``
=========

Blocks are used for inheritance and act as placeholders and replacements at
the same time. They are documented in detail in the documentation for the
:doc:`extends<../tags/extends>` tag.

Block names should consist of alphanumeric characters, and underscores. Dashes
are not permitted.

.. seealso:: :doc:`block<../functions/block>`, :doc:`parent<../functions/parent>`, :doc:`use<../tags/use>`, :doc:`extends<../tags/extends>`