[ZPT] question regarding scope of defines
Sat, 19 Jan 2002 13:18:21 +0100
after carefully reading the docs (for once) I come to you with the following
I would like to define variables by "importing" them from a template like
<div tal:define="global picture string:pic.jpg"
<img tal:attributes="src picture">
If I run that I get an error, that picture is not defined.
Error Type: Undefined
Error Value: "picture" not found in "picture"
Am I trying to do something tal is not meant for, or is there some other way
to have the value of an variable defined outside of the actual template?
thanks for your time