I can't seem to get an IF ELSE END branch to do the right thing. Following
the lead in the O'Reilly book, I have a site defined by:
layout with:

[% WRAPPER html;
     WRAPPER layout;
       content;
     END;
   END
%]

lib/layout has:

<table>
  <tr>
    <td>[% IF ins %][% ins %][% ELSE %][% PROCESS leftcol %][% END %]</td>
    <td>[% content %]</td>
    <td><!-- rightcol --></td>
  </tr>
</table>

The template has a BLOCK and some content:

[% BLOCK ins %]Left column content[% END %]
Main content ......

The problem is that the IF branch always processes 'leftcol', never 'ins'.
I've tried [% PROCESS ins %] as well but no luck.

Garry Heaton



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to