PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/only.test

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

Contents

Class file image Download
--TEST-- "include" tag accept variables and only --TEMPLATE-- {% include "foo.twig" %} {% include "foo.twig" only %} {% include "foo.twig" with {'foo1': 'bar'} %} {% include "foo.twig" with {'foo1': 'bar'} only %} --TEMPLATE(foo.twig)-- {% for k, v in _context %}{{ k }},{% endfor %} --DATA-- return array('foo' => 'bar') --EXPECT-- foo,global,_parent, global,_parent, foo,global,foo1,_parent, foo1,global,_parent,