PHP Classes

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

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

Contents

Class file image Download
--TEST-- "use" tag --TEMPLATE-- {% use 'file2.html.twig'%} {% block foobar %} {{- parent() -}} Content of block (second override) {% endblock foobar %} --TEMPLATE(file2.html.twig)-- {% use 'file1.html.twig' %} {% block foobar %} {{- parent() -}} Content of block (first override) {% endblock foobar %} --TEMPLATE(file1.html.twig)-- {% block foobar -%} Content of block {% endblock foobar %} --DATA-- return array() --EXPECT-- Content of block Content of block (first override) Content of block (second override)