>>>>> "Jonas" == Jonas Liljegren <[EMAIL PROTECTED]> writes:

Jonas> I'm looking for a working pod2html.  I tested many of them and all
Jonas> have some fault.

Jonas> Is there an easy way to create HTML pages from pods in TT?

Jonas> There is a wrapper for Pod::POM, bu are there template components for
Jonas> creating pages?  I just want someting that creates hTML pages with
Jonas> working links.

There's Template::Plugin::Pod (USE Pod ...) and in Template::Manual::Views,
note the following:

       And here's the same approach use to convert Pod documenta- 
       tion to any other format via template. 
 
           [%  # load Pod plugin and parse source file into Pod Object Model 
               USE Pod; 
               pom = Pod.parse_file(my_pod_file); 
 
               # define view to map all Pod elements to "pod/html/xxx" template$
               VIEW pod2html 
                   prefix='pod/html'; 
               END; 
 
               # now print document via view (i.e. as HTML) 
               pod2html.print(pom) 
           %] 
 
       Here we simply define a template prefix for the view which 
       causes the view to look for `pod/html/head1', 
       `pod/html/head2', `pod/html/over' as templates to present 
       the different sections of the parsed Pod document. 

However, I've had parts of my columns disappear when I ran them
through this, so either I'm breaking Pod, or there are holes in the
templates, so beware.  (My columns are processed with pod2html
instead, until I get this worked out.)
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to