You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2002/02/05 06:25:56 UTC
cvs commit: modperl-docs/tmpl/custom/html page_toc
stas 02/02/04 21:25:56
Modified: tmpl/custom/html page_toc
Log:
- render the toc section only if there are at least two body sections
Revision Changes Path
1.4 +6 -4 modperl-docs/tmpl/custom/html/page_toc
Index: page_toc
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page_toc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- page_toc 28 Jan 2002 02:24:52 -0000 1.3
+++ page_toc 5 Feb 2002 05:25:56 -0000 1.4
@@ -1,9 +1,11 @@
-[% #
- # expected args:
- # toc - an array with keys: link, title, abstract, subs
+[% # Create a 'Table of Contents' section, if there are more than one
+ # sections
+ #
+ # Expected args:
+ # toc - an array ref with keys: link, title, abstract, subs
# (subs is optional and includes a similar array)
%]
-[% IF toc.size %]
+[% IF toc.size > 1 %]
<h3>Table of Contents</h3>
<div class="toc">
[% INCLUDE page_toc_section subs=toc %]
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org