x tal:repeat=object here/collection
tal:omit-tag=
I am y tal:replace=object/id /
/x
Everybody keeps forgetting it, but this should work:
tal:loop repeat=object here/collection
I am y tal:replace=object/id /
/tal:loop
Because tags in the 'tal' namespace are stripped.
I could have used
Florent Guillaume wrote:
x tal:repeat=object here/collection
tal:omit-tag=
I am y tal:replace=object/id /
/x
Everybody keeps forgetting it, but this should work:
tal:loop repeat=object here/collection
I am y tal:replace=object/id /
/tal:loop
Because tags in the 'tal'
Martijn Faassen wrote:
How would you do repeating texts or conditional texts like this? I mean,
perhaps it's obvious; I haven't played enough with ZPT yet.
repeat:
x tal:repeat=object here/collection
tal:omit-tag=
I am y tal:replace=object/id /
/x
condition:
yes
Hi out there :)
How would you do repeating texts or conditional texts like this? I mean,
perhaps it's obvious; I haven't played enough with ZPT yet.
Just for your info:
there is one product that tries to address this problem: TERRY
http://www.zope.org/Members/lalo/TextTemplates
It is a
I was about to mention TERRY, but Ulrich beat me to it.
One nice thing about TERRY is that it allows you to change the markup
simbols. For instance it is entirely possible to use:
?tal:content=here/fgcolor black?
(which, by the way, is a semi-standard way to do extentions to html and
looks like
Chris Withers wrote:
Chris -- more and more a ZPT-ONLY! fan each day...
How would you email someone some output from the Python interactive
interpreter?
In other words, how do you get a naked or or in a plain-text ZPT?
I guess you'd need to have a special page template interpreter that
Steve Alexander wrote:
I guess you'd need to have a special page template interpreter that
knows that it isn't putting out SGML-style stuff.
Indeed, you can, of course, use lt; amd amp; in the meantime if the HTML
parser in ZPT does barf (which maybe it shouldn't?)
Sounds like the content
Ulrich Eck wrote:
Hi out there :)
How would you do repeating texts or conditional texts like this? I mean,
perhaps it's obvious; I haven't played enough with ZPT yet.
Just for your info:
there is one product that tries to address this problem: TERRY
Chris Withers wrote:
Phillip J. Eby wrote:
I personally would like to see ZPT support plain text at some point, and it
already has some of the things necessary to do it. But that's a separate
issue from Zope 3X or Zope 3 itself.
It already can:
dummy tal:omit-tag=
At 05:58 PM 12/4/01 +, Chris Withers wrote:
Phillip J. Eby wrote:
I personally would like to see ZPT support plain text at some point, and it
already has some of the things necessary to do it. But that's a separate
issue from Zope 3X or Zope 3 itself.
It already can:
[example
10 matches
Mail list logo