Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
{strip}{block}..

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Jerc
Smarty Rookie


Joined: 26 Jan 2010
Posts: 22
Location: Slovenia / Ljubljana

PostPosted: Mon May 13, 2013 12:13 pm    Post subject: {strip}{block}.. Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4668
Location: Hamburg / Germany

PostPosted: Mon May 13, 2013 3:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4668
Location: Hamburg / Germany

PostPosted: Sat Aug 24, 2013 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP