Files
Twig/extra/cache-extra/Tests/Fixtures/cache_with_blocks.test
Fabien Potencier 55ae21493b Add more tests
2024-05-11 08:59:04 +02:00

16 lines
274 B
Plaintext

--TEST--
"cache" tag
--TEMPLATE--
{% extends "layout.twig" %}
{% block bar %}
{% cache "foo" %}
{%- block content %}FOO{% endblock %}
{% endcache %}
{% endblock %}
--TEMPLATE(layout.twig)--
{% block content %}{% endblock %}
--DATA--
return []
--EXPECT--
FOO