On Wed, 5 Dec 2001, Stefan Seifert wrote:

> Subject should say all. I need a fast way to get all parameters of a
> template including parameters inside of loops and included files.
> global_vars would be no problem to turn it on if that would make it
> easier. I just need them as one long list so I can search it for
> special syntax in variable names.

param() will give you the top-level names, query() will get you into
loops.  It should be easy to write a recursive subroutine that uses
query() to build up a flat list of param names.  Give it a try and if you
get stuck post what you've got to the list and I'll help.

Currently if you set 'global_vars' then you'll get every var from
param()....  But don't count on that since it's undocumented and I have
plans to revise the global_vars implementation that would change that!

> Also: will ":" ever be allowed in variable names?
> name="object:id.value" would be so much nicer than
> name="object/id.value" :)

It would?  That syntax doesn't remind me of any programming language I've
ever seen.  How about "object.id.value"?  That almost looks like Java*.

-sam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to