Text::TOC::Role::OutputHandler - A role for output handlers
version 0.10
This role defines the API for output handlers.
This role requires one method:
This method takes an array reference of objects which implement the Text::TOC::Role::Node API and does something with them. Typically, that "something" will be to construct a representation of the table of contents, and to insert anchors for the nodes into the source document.
Note that this latter feature requires that the nodes reference the source document somehow. For example, with an HTML document, the implementation uses HTML::DOM, which means that nodes are able to access their entire containing document.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2012 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::TOC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::TOC
CPAN shell
perl -MCPAN -e shell install Text::TOC
For more information on module installation, please visit the detailed CPAN module installation guide.