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?

greets


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





------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to