[Zope-dev] ZPT & Plain Text

Leonardo Rochael Almeida leo@hiper.com.br
05 Dec 2001 11:16:59 -0200


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 php escapes)
instead of
%(tal:content="here/fgcolor" black)%

However I think there still isn't an easy, thru the web, way to change
the markup signals.

On Wed, 2001-12-05 at 09:41, 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.
> 
> >
> >> I also think this looks rather unnatural when doing email templates or
> >> SQL templates.
> >
> > I used to think that, I'm quickly changing positions. Perhaps the only
> > option I'd like is a check box somewhere on the template object saying
> > something like "always include tal:omit-tag by default. Then I reckon it
> > could do for everything :-)
> >
> > cheers,
> >
> > Chris -- more and more a ZPT-ONLY! fan each day...
> 
> 
> YES :)))  One Template-Language for all: ZPT
> .. and one Expression Syntax as well: TALES ..

-- 
Ideas don't stay in some minds very long because they don't like
solitary confinement.