Iterating over my loop structure is exactly what I'm doing to provide my
variables as global. But for loop structures which have more than only one
dimension this is not such a nice way to do it. With the option global_vars
=> 1 the script needs 6 seconds or more. With iterating over my loop
structure, it needs only 1 second.
I thought of a new function like global_param() which mainly act like
param(). What do you think, Sam?
At 09:38 29.07.2003 +1000, you wrote:
>Sounds like a mighty fine feature to me. Something i can see myself
>using quite a bit....
>I have a few scenarios myself where i want one or two particular
>variables to be global, but not the rest, currently, i iterate over my
>loop structure and insert the global variable into every "row". The
>above feature would take away the need for this.
>What think ye Sam?
>How would something like this suit, if global_vars is set to an arrayref
>containing strings of variables that should be global, then only those
>variables are global?
>On Tue, 2003-07-29 at 07:13, Steffen Zeidler wrote:
> > Hi there,
> > what I'm looking for are global vars. I know, that there is an
> > options. But if your templates becoming really big, with many
> > vars, the parsing isn't pretty fast. The problem I have with the
> > option global vars is, that every variable is global. I'd like to have
> > some specific variables as global variables.
> > Is there already a solution for that problem? If not, what do you
> > think about this as a new feature for the next version of
> > HTML-Template?
> > Greets