PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/use/inheritance2.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/use/inheritance2.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/use/inheritance2.test
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: 602 bytes
 

Contents

Class file image Download
--TEST-- "use" tag --TEMPLATE-- {% use "ancestor.twig" %} {% use "parent.twig" %} {{ block('container') }} --TEMPLATE(parent.twig)-- {% block sub_container %} <div class="overriden_sub_container">overriden 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="overriden_sub_container">overriden sub_container</div> </div>