PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/embed/with_extends.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/embed/with_extends.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/embed/with_extends.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 787 bytes
 

Contents

Class file image Download
--TEST-- "embed" tag --TEMPLATE-- {% extends "base.twig" %} {% block c1 %} {{ parent() }} blockc1baseextended {% endblock %} {% block c2 %} {{ parent() }} {% embed "foo.twig" %} {% block c1 %} {{ parent() }} block1extended {% endblock %} {% endembed %} {{ parent() }} {% endblock %} --TEMPLATE(base.twig)-- A {% block c1 %} blockc1base {% endblock %} {% block c2 %} blockc2base {% endblock %} B --TEMPLATE(foo.twig)-- A {% block c1 %} block1 {% endblock %} B {% block c2 %} block2 {% endblock %} C --DATA-- return array() --EXPECT-- A blockc1base blockc1baseextended blockc2base A block1 block1extended B block2 C blockc2base B