Re: [Zope-dev] ZPT & Plain Text

2001-12-06 Thread Chris Withers
Florent Guillaume wrote: > > > >tal:omit-tag=""> > > I am > > > > Everybody keeps forgetting it, but this should work: > > > I am > > > Because tags in the 'tal' namespace are stripped. > > I could have used "dummy" instead of "loop" though. I did forget that, and that makes it e

Re: [Zope-dev] ZPT & Plain Text

2001-12-06 Thread Florent Guillaume
> tal:omit-tag=""> > I am > Everybody keeps forgetting it, but this should work: I am Because tags in the 'tal' namespace are stripped. I could have used "dummy" instead of "loop" though. Florent -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 10 http://nuxeo.co

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 > http://www.zope.org/Mem

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 < amd & in the meantime if the HTML parser in ZPT does barf (which maybe it shouldn't?) Sounds like the content type

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

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: (which, by the way, is a semi-standard way to do extentions to html and looks like php escapes) instead of %(tal:con

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 i

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: I am condition: You have objects in your basket Your basket is empty > I also think this looks rather unnatural wh

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: > >

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: > > tal:content="

[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: Some dummy text Or even: Some dummy text It's more lo