head	1.3;
access;
symbols
	start:1.1.1.1 swish-e:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2005.02.03.06.19.59;	author whmoseley;	state Exp;
branches;
next	1.2;

1.2
date	2005.01.19.07.05.07;	author whmoseley;	state Exp;
branches;
next	1.1;

1.1
date	2005.01.18.20.32.49;	author whmoseley;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2005.01.18.20.32.49;	author whmoseley;	state Exp;
branches;
next	;


desc
@@


1.3
log
@
Updates for xhtml validation
@
text
@[% 
    # Template for converting POD into HTML.

    USE pom = POD( content );

    page.title = pom.title || page.title;
    page.toc   = pom.toc
    view       = pom.view  || 'Pod::POM::View::HTML';

%]
<h1>[% page.title | html %]</h1>
Swish-e version [% swish.version %]


[% PROCESS page_toc toc = page.toc %]




<hr />

[% FOREACH section = pom.podparts %]
    <div class="sub-section">
        [% section.present(view) %]
    </div>
[% END %]







[% BLOCK page_toc %]
    <!-- noindex -->

    [% IF toc.size && toc.0.title %]
        <h2>Table of Contents</h2>
        <div class="toc">
            [% INCLUDE item_toc subs = pom.toc %]
        </div>
    [% END %]
    <!-- index -->
[% END %]



[% BLOCK item_toc %]
    <ul class="toc">
        [% FOREACH sec = subs %]
            <li>
                <a href="[% sec.link %]">[% sec.title %]</a>
                [% IF sec.subs; PROCESS item_toc subs = sec.subs; END %]
            </li>
        [% END %]
    </ul>
[% END %]

@


1.2
log
@
Add inital code for indexing site and docs.

Meta name "section" is used to limit to a section.  Search for "defaultcontents"

   defaultcontents section=docs
   defaultcontents section=devel  ( only devel docs)
   defaultcontents section=website ( only web site pages, excluding docs and devel_docs )
@
text
@d20 1
a20 1
<hr>
@


1.1
log
@Initial revision
@
text
@d22 4
a25 2
[% FOREACH section = pom.sections %]
  [% section.present(view) %]
@


1.1.1.1
log
@Initial import
@
text
@@
