My template code looks like:

[% FOREACH x = aList %]
  [%
      IF loop.index > 0;
         a = ...;
         b = ...;
         c = ...;
         IF x.disabled;
           show_disabled_row(...);
         ELSE;
           show_normal_row(...);
         END;
  %]
[% END %]

The problem is that the ELSE is being matched with the outer IF, not
the inner IF.

How can I write this so that TT will match the ELSE with the second IF?

Thanks,
ER

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to