[% # $Id: nest,v 1.2 2004/12/05 11:57:46 jv Exp $ -%]
[%

DEFAULT pad = '';

FOREACH item = menu.items;
    pad;

    INCLUDE menu/text
      link = {
	text     = item.name
	url      = site.topdir _ item.url
	class    = item.hot ? 'menuselect' : 'menu'
      };

    IF item.subs;
	"<br />\n";
	INCLUDE menu/nest
	  menu = item
	  pad  = pad ? "&nbsp;&nbsp;&nbsp;$pad"
		     : "&nbsp;-&nbsp;";
    END;

    "<br />\n";
END;

-%]
