Re: [htmltmpl] global_vars, TMPL_LOOPs and query()
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2004-02-25 22:27:52
|
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 |