Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: HTML::Template not finding parameter in template

by Loops (Curate)
on Nov 22, 2014 at 02:56 UTC ( #1108075=note: print w/replies, xml ) Need Help??


in reply to HTML::Template not finding parameter in template

When your template variable is inside a <TMPL_LOOP> you have to qualify it with the loop name:

$template->param( chassis_type => [{ chassis_id => [{ SLOTNAME => 'test-slot-name' }] }] );

The template doesn't demand a global SLOTNAME value, it requires a value for every iteration of the loop.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1108075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-08-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?