Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: HTML table-of-contents generator

by gjb (Vicar)
on Jul 01, 2003 at 17:56 UTC ( [id://270577]=note: print w/replies, xml ) Need Help??


in reply to HTML table-of-contents generator

A CPAN search for 'html toc' gives a number of hits, and HTML::GenToc seems promising.

Hope this helps, -gjb-

Replies are listed 'Best First'.
Re: Re: HTML table-of-contents generator
by PodMaster (Abbot) on Jul 01, 2003 at 19:33 UTC
    There also exists HTML::Toc.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      The problem is that HTML::Toc generates invalid HTML.
      <a name=h-1><h1>Header One</h1></a>
      HTML::GenToc puts the H1 and A tags in the correct order, but doesn't understand (at least, it's not in the docs) the preferred way to do it, which is the way my existing HTML is:
      <H1 id="h-1">Header One</H1>
      I'd want inserted tags to use this way, and it must certainly understand this way!

      —John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://270577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found