Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix extending multiple levels of Contao templates (see #3203)
Description ----------- Fixes the `{% extends '@Contao/ce_text' %}` part of #3200 Commits ------- aaec0be Fix extending multiple levels of Contao templates c1a3c70 Add nested templates test 48daedc Fix coverage
- Loading branch information
Showing
6 changed files
with
90 additions
and
2 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
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,9 @@ | ||
...ignored | ||
<?php echo $this->extend('foo'); ?> | ||
...ignored | ||
<?php $this->block('A'); ?> | ||
bar before A | ||
<?php $this->parent() ?> | ||
bar after A | ||
<?php $this->endblock(); ?> | ||
...ignored |
15 changes: 15 additions & 0 deletions
15
core-bundle/tests/Fixtures/Twig/legacy/templates/baz.html5
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 @@ | ||
...ignored | ||
<?php echo $this->extend('bar'); ?> | ||
...ignored | ||
<?php $this->block('A'); ?> | ||
baz before A | ||
<?php $this->parent() ?> | ||
baz after A | ||
<?php $this->endblock(); ?> | ||
...ignored | ||
<?php $this->block('B'); ?> | ||
baz before B | ||
<?php $this->parent() ?> | ||
baz after B | ||
<?php $this->endblock(); ?> | ||
...ignored |
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