Re: [Zope-dev] ZPT Plain Text

2001-12-06 Thread Florent Guillaume
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

Re: [Zope-dev] ZPT Plain Text

2001-12-06 Thread Chris Withers
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'

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Chris Withers
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

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Ulrich Eck
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

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Leonardo Rochael Almeida
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

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Steve Alexander
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

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Chris Withers
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

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Martijn Faassen
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

[Zope-dev] ZPT Plain Text

2001-12-04 Thread Chris Withers
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= tal:content=mymethod Some dummy text

Re: [Zope-dev] ZPT Plain Text

2001-12-04 Thread Martijn Faassen
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=

Re: [Zope-dev] ZPT Plain Text

2001-12-04 Thread Phillip J. Eby
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