Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [ryel01] Passing hash to global in template?

Quote Reply
Re: [ryel01] Passing hash to global in template? In reply to
Don't use references, do:

<%mytag( foo => 1, bar => 2 )%>

and then in your global:

my %hash = @_;
print $hash{foo}, $hash{bar};

Cheers,

Alex
--
Gossamer Threads Inc.
Subject Author Views Date
Thread Passing hash to global in template? ryel01 3187 Jun 15, 2002, 2:02 PM
Thread Re: [ryel01] Passing hash to global in template?
Alex 3076 Jun 17, 2002, 10:55 AM
Thread Re: [Alex] Passing hash to global in template?
webmaster33 3019 Dec 13, 2002, 2:22 AM
Thread Re: [webmaster33] Passing hash to global in template?
Jagerman 2985 Dec 13, 2002, 3:21 AM
Post Re: [Jagerman] Passing hash to global in template?
webmaster33 3016 Dec 13, 2002, 3:44 AM
Post Re: [Jagerman] Passing hash to global in template?
webmaster33 2982 Dec 13, 2002, 6:49 AM