|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Jerc Smarty Rookie
Joined: 26 Jan 2010 Posts: 30 Location: Slovenia / Ljubljana
|
Posted: Mon May 13, 2013 12:13 pm Post subject: {strip}{block}.. |
|
|
I think {block} tag should be stripped in extended file. Example:
This is my head.tpl file:
Code: | {strip}
<div id="header">
{block name="headerNavigation"}
<div>
Content is stripped
</div>
{/block}
</div>
{/strip} |
Output: <div id="header"><div>Content is stripped</div></div>
This is my sub.head.tpl file:
Code: | {strip}
{extends file="head.tpl"}
{block name="headerNavigation"}
<div>
Demo
</div>
{/block}
{/strip} |
Output: <div id="header">
<div>
Demo
</div>
</div>
If i put inside block tag another {strip} ({block name="headerNavigation"}{strip}), then the output is:
<div id="header">
<div>Demo</div>
</div>
Tested on smarty: 3.1.12, 3.1.13 |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon May 13, 2013 3:57 pm Post subject: |
|
|
Interesting case. I'm currently not sure if this could be fixed easily in 3.1.
Template Iheritance is completely rewritten in the upcomming major version 3.2. I will make sure that it will be covered for that release... |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Aug 24, 2013 6:54 pm Post subject: |
|
|
This is now fixed in the SVN truck for Smarty 3.1
The fix will leter be included in 3.1.15 |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|