Text::TOC::Role::OutputHandler - A role for output handlers
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 <firstname.lastname@example.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.