Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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
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 imbibing at the Monastery: (4)
As of 2021-04-18 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?