mydnight has asked for the wisdom of the Perl Monks concerning the following question:
I'm having trouble getting HTML::Template's blocks to function -- it seems like my template is just skipping that code entirely.
The <TMPL_VAR> line is displaying the expected values, but nothing in the block below it is showing up whatsoever. The data structure I'm passing in to the template is:<TMPL_LOOP NAME=DATA> <TMPL_VAR NAME=complete><br> <TMPL_IF NAME="complete"> <!-- Some HTML here --> <TMPLE_ELSE> <!-- Some other HTML here --> </TMPL_IF> </TMPL_LOOP>
Any help is greatly appreciated -- I've been banging my head against it for the last hour.$VAR1 = [ { 'code' => 26, 'message' => 'Start building sensors for Jarvis', 'complete' => 0 }, { 'code' => 33, 'message' => 'Machine learning to determine if actions are app +ropriate or not', 'complete' => 0 }, { 'code' => 37, 'message' => 'Play by genre audioserv method', 'complete' => 0 } ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template <TMPL_IF> blocks
by ww (Archbishop) on Aug 03, 2012 at 07:47 UTC | |
by Anonymous Monk on Aug 03, 2012 at 08:30 UTC | |
|
Re: HTML::Template <TMPL_IF> blocks
by locked_user sundialsvc4 (Abbot) on Aug 03, 2012 at 13:45 UTC |