blob: 17756cb6c6a4449df36b98b3545276a8a985a08c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--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">
|