On Wed, 25 Feb 2004, petersm wrote:
> Anywho, I'm not sure if this is a bug or if I'm not not
> understanding how it is supposed to work. The problem I am having is
> that when 'global_vars' is turned on any vars that are inside of
> TMPL_LOOPS show up when I get the vars back from a query(). But with
> it turned off, any vars inside of the TMPL_LOOPS don't show up
> unless I specifically call a query(loop => $loopName). Is this the
> expected behavior?
I'd call it a bug, but not one that will be easy to fix. This is just
another case where the hackish implementation of global_vars shows
through the API. Someday I'll write HTML::Template v3 and do
global_vars right...
-sam
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|