[Templates] "sub(x)" syntax with $context access

Brad Bowman list at bereft.net
Tue Nov 13 03:31:19 GMT 2007


> I'm not sure I understand your problem entirely. Here is some rough code 
> that you may be able to get to do what you want, though. Basically it 
> relies on having the $tt object available to your routine and passing 
> the vfield routine in the process vars.

It's not apparent in the test code I sent, but the $tt in my codebase
isn't currently in the same scope as the vfield sub, but I can change
that.  Thanks for reframing my thinking.

Brad

-- 
   It is a wretched thing that the young men of today are so contriving
   and so proud of their material possessions. Men with contriving hearts
   are lacking in duty. Lacking in duty, they will have no self respect.
      -- Hagakure http://bereft.net/hagakure/



More information about the templates mailing list