[htmltmpl] associate - bug?
Brought to you by:
samtregar
From: <hat...@tu...> - 2005-03-04 12:09:45
|
Hello html-template-users, may be I'm mistaken, but pod says: You can specify multiple objects to associate by passing an anonymous array to the associate option. They are searched for parameters in the order they appear: my $template = HTML::Template->new(filename => 'template.tmpl', associate => [$query, $other_obj]); as I understand, "They are searched for parameters in the order they appear" means that if we have $query->param(some_param => 'value1'); $other_obj->param(some_param => 'value2'); then $template->param('some_param') should be equal to 'value1' ($query appears _earlier_ in associate) but the fact is that $template->param('some_param') is equal to 'value2' am I mistaken? -- Best regards, Jury Gorky mailto:hat...@tu... |