[Dancer-users] IF statement issues in template

J. Bobby Lopez jbl at jbldata.com
Thu Apr 21 17:03:38 CEST 2011


Curious if anyone's run into this.. I have an IF statement in a template,
like so:

[% IF blah %]
  show this
[% END %]


I'm using template::toolkit (not template::simple) like so:

set template => 'template_toolkit';
template 'index' =>
{
   form => $form,
   var1 => $var1,
   var2 => $var2,
   var3 => $var3,
};


When I load it all up in the browser, the IF statement doesn't work (is
ignored), and the "show this" is displayed, even though "blah" doesn't exit.

What am I doing wrong?  Is it my lack of TT knowledge, or something I've
done incorrectly in my Dancer config?

Thanks,
-Bobby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110421/fbb4c6a8/attachment.htm>


More information about the Dancer-users mailing list