PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/macro/self_import.test

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

Contents

Class file image Download
--TEST-- "macro" tag --TEMPLATE-- {% import _self as forms %} {{ forms.input('username') }} {{ forms.input('password', null, 'password', 1) }} {% macro input(name, value, type, size) %} <input type="{{ type|default("text") }}" name="{{ name }}" value="{{ value|e|default('') }}" size="{{ size|default(20) }}"> {% endmacro %} --DATA-- return array() --EXPECT-- <input type="text" name="username" value="" size="20"> <input type="password" name="password" value="" size="1">