[Zope] Calling a Variable

Tino Wildenhain tino at wildenhain.de
Fri Mar 9 03:47:03 EST 2007


Martijn Pieters schrieb:
> On 3/8/07, tonylabarbara at aol.com <tonylabarbara at aol.com> wrote:
>> I thought I could call a variable in a page template by defining it 
>> and then
>> putting a ? in front of it in a URL, like this:
> 
> Incorrect, you can only use ? to interpolate variables into a path 
> expression:
> 
>  <span tal:define="foo string:bar"
>              tal:content="here/?foo"></span>
> 
> The above example will look up 'bar' and render it as the content of the 
> span.
> 
I notice ZPT gets weirder and weirder...
How many syntactic specialities will we add to path expressions? ;)
Why not keep it simple? :-)

Or make it simpler by removing even tal:define ...

Regards
Tino


More information about the Zope mailing list