mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-07 03:35:16 +00:00
11 lines
245 B
Plaintext
11 lines
245 B
Plaintext
--TEST--
|
|
"html_attr_merge" filter
|
|
--TEMPLATE--
|
|
{% autoescape false %}
|
|
{{ { foo: 'bar' } | html_attr_merge({ bar: 'baz', foo: 'qux' }, { foo: 'quux' }) | json_encode }}
|
|
{% endautoescape %}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
{"foo":"quux","bar":"baz"}
|