mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
23 lines
265 B
Plaintext
23 lines
265 B
Plaintext
--TEST--
|
|
Twig parses postfix expressions
|
|
--TEMPLATE--
|
|
{% import _self as macros %}
|
|
|
|
{% macro foo() %}foo{% endmacro %}
|
|
|
|
{{ 'a' }}
|
|
{{ 'a'|upper }}
|
|
{{ ('a')|upper }}
|
|
{{ (-1)|abs }}
|
|
{{ macros.foo() }}
|
|
{{ (macros).foo() }}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
a
|
|
A
|
|
A
|
|
1
|
|
foo
|
|
foo
|