On Oct 7, 2005, at 4:47 PM, Bill Moseley wrote:

Any way to get to the stash from a virtual method?  That is:

    [% some_var.some_vmethod %]

Then in some_vmethod() I'd like to have access to the stash.

when you create the some_var object, it is passed the $context. Save that reference in your object, then your some_vmethod() can get to it via $self, and from $context get to the stash.



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to