I have a menu:

[% menu = [
         {
             mode = 'home'
             text = 'Home'
             type = 'list'
         }
         {
             mode = 'who'
             text = "Who it's for & why?"
             type = 'list'
         }
     ]
%]

I have a page variable:

[% page = 'who' %]


Both of those are defined at the top of the page...


I have a FOREACH going like:

[% FOREACH item IN menu %]
[% IF item.type == "list" && item.mode == page %]
<li class="list-current">[% item.text %]</li>
[% ELSE %]
<li>[% item.text %]</li>
[% END %]
[% END %]

That doesn't seem to be working.

Help?

Robert






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

Reply via email to