PHP Classes

File: libs/Twig/doc/functions/block.rst

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/doc/functions/block.rst   Download  
File: libs/Twig/doc/functions/block.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 359 bytes
 

Contents

Class file image Download
``block`` ========= When a template uses inheritance and if you want to print a block multiple times, use the ``block`` function: .. code-block:: jinja <title>{% block title %}{% endblock %}</title> <h1>{{ block('title') }}</h1> {% block body %}{% endblock %} .. seealso:: :doc:`extends<../tags/extends>`, :doc:`parent<../functions/parent>`