This repository has been archived by the owner on Apr 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update block extends tests smarty-php/smarty#393
- Loading branch information
Showing
7 changed files
with
85 additions
and
4 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
2 changes: 2 additions & 0 deletions
2
UnitTests/TemplateSource/TagTests/BockExtend/templates/034_child.tpl
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,2 @@ | ||
{extends '034_parent.tpl'} | ||
{block 'b1'}{$foo=$smarty.block.parent}{$foo}{/block} |
2 changes: 2 additions & 0 deletions
2
UnitTests/TemplateSource/TagTests/BockExtend/templates/034_parent.tpl
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,2 @@ | ||
test:{$test nocache} compiled:# rendered:{$test} | ||
{block 'b1'}parent b1{/block} |
2 changes: 2 additions & 0 deletions
2
UnitTests/TemplateSource/TagTests/BockExtend/templates/035_child.tpl
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,2 @@ | ||
{extends file='035_parent.tpl'} | ||
{block name='b'}(child|b)content {$child} b(child|/b){/block} |
2 changes: 2 additions & 0 deletions
2
UnitTests/TemplateSource/TagTests/BockExtend/templates/035_parent.tpl
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,2 @@ | ||
test:{$test nocache} compiled:# rendered:{$test} | ||
{block name='b'}(parent|b)content {$foo=$smarty.block.child}{$foo} b(parent|/b){/block} |
1 change: 1 addition & 0 deletions
1
UnitTests/TemplateSource/TagTests/BockExtend/templates/036_parent.tpl
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 @@ | ||
{block name='b'}{$smarty.block.foo}{/block} |
1 change: 1 addition & 0 deletions
1
UnitTests/TemplateSource/TagTests/BockExtend/templates/037_parent.tpl
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 @@ | ||
{block name='b'}{$smarty.block}{/block} |