All the 'do_xxxx' POST hooks get the following arguments passed in:
$template, $tags, $opts
$template contains the name of the template to be displayed, $tags is a hashref with the template variables, and $opts are parsing options.
So, in your case, you would do something like
Code:
sub my_plugin_post_hook {
my ($template,$tags,$opts) = @_;
.... your code here ....
$tags->{test} = $testing;
.... more code maybe ....
return $template,$tags,$opts;
}
This will provide the tag <%test%> on the template, containing the value of $testing.
I hope this helps.
Ivan
-----
Iyengar Yoga Resources /
GT Plugins