mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
https://github.com/smarty-php/smarty/issues/296
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
3.1.31
|
3.1.31-dev
|
||||||
New tags for inheritance parent and child
|
New tags for inheritance parent and child
|
||||||
{block_parent} == {$smarty.block.parent}
|
{block_parent} == {$smarty.block.parent}
|
||||||
{block_child} == {$smarty.block.child}
|
{block_child} == {$smarty.block.child}
|
||||||
|
|
||||||
|
Since 3.1.28 you can mix inheritance by extends resource with the {extends} tag.
|
||||||
|
A template called by extends resource can extend a subtemplate or chain buy the {extends} tag.
|
||||||
|
Since 3.1.31 this feature can be turned off by setting the new Smarty property Smarty::$extends_recursion to false.
|
||||||
|
|
||||||
|
|
||||||
3.1.28
|
3.1.28
|
||||||
Starting with version 3.1.28 template inheritance is no longer a compile time process.
|
Starting with version 3.1.28 template inheritance is no longer a compile time process.
|
||||||
All {block} tag parent/child relations are resolved at run time.
|
All {block} tag parent/child relations are resolved at run time.
|
||||||
@@ -43,8 +48,8 @@ Any code outside root {block} tags in child templates is now executed but any ou
|
|||||||
....
|
....
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
Starting with 3.1.28 you can mix inheritance by extends resuorce with the {extends} tag.
|
Starting with 3.1.28 you can mix inheritance by extends resource with the {extends} tag.
|
||||||
A template called by extends resoure can extend a subtemple or chain buy the {extends} tag.
|
A template called by extends resource can extend a subtemplate or chain buy the {extends} tag.
|
||||||
|
|
||||||
NOTE There is a BC break. If you used the extends resource {extends} tags have been ignored.
|
NOTE There is a BC break. If you used the extends resource {extends} tags have been ignored.
|
||||||
|
|
||||||
|
@@ -1,4 +1,8 @@
|
|||||||
===== 3.1.31-dev ===== (xx.xx.xx)
|
===== 3.1.31-dev ===== (xx.xx.xx)
|
||||||
|
29.09.2016
|
||||||
|
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
|
||||||
|
https://github.com/smarty-php/smarty/issues/296
|
||||||
|
|
||||||
28.09.2016
|
28.09.2016
|
||||||
- bugfix the generated code for calling a subtemplate must pass the template resource name in single quotes https://github.com/smarty-php/smarty/issues/299
|
- bugfix the generated code for calling a subtemplate must pass the template resource name in single quotes https://github.com/smarty-php/smarty/issues/299
|
||||||
- bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
|
- bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
|
||||||
|
Reference in New Issue
Block a user