[ZPT] RE: Should tal:content keep surrounding tags?

Wade Leftwich wade@lightlink.com
Sat, 2 Jun 2001 15:29:06 -0400


[Jim Fulton wrote:
-----------------
  <td tal:content="here/splat"><font color="white"><font size="+1"
   ><i>splat</i></font></font></td>

which would allow dynamic data insertion without losing added
presentation tags.
------------------]

Whenever possible, I'm going with
 <td><font color="white"><font size="+1"><i><span
tal:replace="here/splat">splat</span></i></font></font></td>

. . . which seems to me more in keeping with separation of content &
presentation, and saves hassles later on when you realize you didn't want a
table at all, but a <ul>. (Or if you're doing several variations on the same
template for delivery to different devices.)

I endorse Brad Clements' remark: "I still need a way to have a repeat that
does NOT include the enclosing element." This is extra important when you're
building XML.

ZPT is (are?) really making Zope happen for me. Thanks fellas!

Wade Leftwich
Ithaca, NY