Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #4081 Fix blocks not available under some circumstancies (fabpot)
This PR was squashed before being merged into the 3.x branch. Discussion ---------- Fix blocks not available under some circumstancies Fix #4079 Commits ------- 55ae214 Add more tests d30b72c Fix blocks not available under some circumstancies
- Loading branch information
Showing
6 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--TEST-- | ||
"cache" tag | ||
--TEMPLATE-- | ||
{% cache 'test_%s_%s'|format(10, 10000) ttl(36000) %} | ||
{% set content %} | ||
OK | ||
{% endset %} | ||
{% apply spaceless %} | ||
{{ content }} | ||
{% endapply %} | ||
{% endcache %} | ||
--DATA-- | ||
return [] | ||
--EXPECT-- | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters