[Zope-dev] ZPT & Plain Text

Martijn Faassen faassen@vet.uu.nl
Wed, 5 Dec 2001 21:02:12 +0100


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/Members/lalo/TextTemplates
> 
> It is a modified version of TAL that doesn't use XML but
> a custom syntax:
> 
> %(tal:content="here/fgcolor" black)%
> 
> I don't now, if this makes things easier, but it would
> ensure at least the use of TALES and has similar usage.

Yes, TALES seems to be the way to go, unless we opt for a really
micro-language dedicated to do only one thing and nothing more. I'm 
unconvinced I want to explain ZPT with omit-tag etc for someone just writing
SQL, for instance, though. Looks worse and is harder to explain even
than DTML, which is bad news.

Regards,

Martijn