Re: [Cheetahtemplate-discuss] FEEDBACK WANTED: syntax issues
Brought to you by:
rtyler,
tavis_rudd
From: Tavis R. <ta...@ca...> - 2001-08-25 20:10:59
|
On Saturday 25 August 2001 12:22, Ian Bicking wrote: > Tavis Rudd <ta...@ca...> wrote: > > Ian, > > #block and #set / #data are fundamentally different in > > the respect that #block's can contain Cheetah syntax to > > be parsed. The values assigned with #set and #data > > won't be parsed. > > Well, you can do "#set $x = $y", yes? That means #set's > are parsed. No, not parsed in that way. I mean the VALUE of $x is not parsed for Cheetah syntax if it is included in the template def as a top-level $placeholder tag. > If #data isn't parsed, it become increasly less useful to > me, because not only is the syntax unappealing, but it's > no longer able to express anything interesting -- i.e., > dynamic relationships among attributes. Remember: Python for the complex tasks, Cheetah for the simple ones. #set is used for dynamic relationships among atributes. Anything that can't be expressed with #set doesn't belong in Cheetah syntax. Can you give me a real-world example of what you're tring to do. I think I'm getting the wrong impression. It seems like you're trying to do stuff inside Cheetah that I feel doesn't belong there. Have a look at the Velocity docs for more background on where I'm coming from. Cheers, Tavis p.s. I'm offline again until next Sunday |