stas 2002/07/15 01:40:18 Modified: tmpl/custom/html sitemap_body Log: - add new lines to separate between items - don't render empty <ul></ul> groups, as the spec doesn't allow this Revision Changes Path 1.4 +11 -11 modperl-docs/tmpl/custom/html/sitemap_body Index: sitemap_body =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/sitemap_body,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- sitemap_body 28 Jun 2002 06:36:57 -0000 1.3 +++ sitemap_body 15 Jul 2002 08:40:18 -0000 1.4 @@ -14,20 +14,20 @@ # "</p>"; # now recursively render all levels - '<ul class="toc">'; INCLUDE print_node c = doc.nav.first prefix = "."; - "</ul>"; -%] [% BLOCK print_node; - WHILE c; - "<li>"; - INCLUDE print_item; - '<ul class="toc">'; - INCLUDE print_node c=c.down.first prefix="$prefix/${c.meta.rel_path}"; - c = c.next; - "</ul>"; - "</li>"; + IF c; + "<ul class=\"toc\">\n"; + WHILE c; + "<li>\n"; + INCLUDE print_item; + INCLUDE print_node c=c.down.first prefix="$prefix/${c.meta.rel_path}"; + c = c.next; + "</li>\n"; + END; + "</ul>\n"; END; END; %] @@ -35,4 +35,4 @@ [%- BLOCK print_item -%] [%- link = INCLUDE link prefix=prefix link=c.meta.link -%] <a href="[% link %]">[% c.meta.title %]</a> -[%- END -%] +[% END %]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]