Re: Tag execution context Q? (was Re: Programmatic parents?)
"Jonathan Ellis" <[email protected]> Wed, 09 Aug 2006 14:41:21 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 09 Aug 2006 16:49:33 +0200, "Iwan Vosloo" <[email protected]> said: > Another strange question... I understand that a tag definition is like > a function definition; where you use it is like a method call. The > attributes of the tag "call" are passed into the definition from the > calling scope. So you won't be able to reference variables in the > calling scope from inside a tag definition other than what was "passed > in" via the tag attributes. > > Assuming this understanding is correct: > Do you have anything like tag-macros of inline-tags: A tag which, upon > spyce compilation just results in the tag's definition being expanded in > place in the code where it gets executed in the calling context. > Analogous to a static include, but using the tag syntax? Nope. There's a good reason God invented namespaces. :) -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642