E R wrote:
> 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 %]
>   
Looks like you're missing an [% END %] in there (three levels in, but 
only two back out) - if that doesn't work, maybe change the logic to use 
NEXT IF loop.index == 0; just after the FOREACH?

-- 

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to