[ZPT] Should tal:content keep surrounding tags?

Brad Clements bkc@murkworks.com
Mon, 4 Jun 2001 13:31:42 -0400


On 4 Jun 2001, at 12:27, Evan Simpson wrote:

> 1. A tal:put="target1 expr1;target2 expr2;..." statement that replaces
> 'target1' with the value of 'expr1' (and so on) in any text inside of the
> tag.



> 2. A tal:interpolate="$" attribute that causes its argument to become an
> interpolation marker.  (Richard suggested this without the argument, but for
> XML use there has to be *some* argument).  Assuming x='foo':


I'm waffling between  these two. I'm considering the case where you want to show 
some default text in an editor.

So in the 2nd case, having <i>$companyname</i> isn't as good as having 
<i>Company Name</i>

which in the first case would be tal:put="'Company Name' expr1" 

Yuck, can't do that.

I suppose this is one of those uses where showing default text will just have to suffer 
with something like

<p tal:put="Company_Name item/name"><i>Company_Name</i></p>

??