Posted on 2007-03-20 20:59:48-07 by jhill03
embedded if
I'm new to the Template-Toolkit and have a question regarding how to embed an IF condition... I have:
[% cgi.popup_menu( name => 'my_name', values => my_values, labels => my_labels, [% IF data.disabled == '1' %] disabled => data.disabled [% END %] %]
but I'm getting the following error:
unexpected token (%)
So, is it possible to embed an IF clause in this manner, or is it not possible? Thanks, Jayson
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.