PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance.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: 607 bytes
 

Contents

Class file image Download
--TEST-- "use" tag --TEMPLATE-- {% use "parent.twig" %} {{ block('container') }} --TEMPLATE(parent.twig)-- {% use "ancestor.twig" %} {% block sub_container %} <div class="overridden_sub_container">overridden sub_container</div> {% endblock %} --TEMPLATE(ancestor.twig)-- {% block container %} <div class="container">{{ block('sub_container') }}</div> {% endblock %} {% block sub_container %} <div class="sub_container">sub_container</div> {% endblock %} --DATA-- return array() --EXPECT-- <div class="container"> <div class="overridden_sub_container">overridden sub_container</div> </div>