NAME
Text::Decorator - Apply a chain of filters to text
SYNOPSIS
$self->new(...);
$self->format_as(...);
DESCRIPTION
Text::Decorator is a framework for marking up plain text into various formats by applying a chain of filters. For instance, you might apply a URI-finding filter which will cause URIs in text to be presented as links if the text is exported as HTML.
METHODS
new
$self->new($text)
Creates a new Text::Decorator instance.
add_filter
$self->add_filter("EscapeHTML" => @arguments);
This adds a new filter onto the queue of filters which will be applied to this decorator; returns the decorator object.
format_as
$self->format_as("html")
Apply all the filters and return the text in the specified representation. If the representation is unknown, plain text will be returned.
LICENSE
This module is free software, and may be distributed under the same terms as Perl itself.
AUTHOR
Copyright (C) 2003, Simon Cozens simon@kasei.com
Copyright (C) 2004, Simon Cozens simon@cpan.org
SEE ALSO
Text::Decorator::Filter, Text::Decorator::Node, Text::Decorator::Group