NAME
Formatter::HTML::Textile
DESCRIPTION
SYNOPSIS
my $textile = <<TEXTILE;
h1. textile document
this is a "textile":http://textism.com/tools/textile/ document
TEXTILE
my $formatter = Formatter::HTML::Textile->format( $textile );
print "title is ".$formatter->title."\n";
print $formatter->document;
my @links = @{ $formatter->links };
print "Links urls: ";
print join ", " map { $_->{url} } @links;
print "\n";
METHODS
- format($string)
-
This is a constructor method and initializes the formatter with the passed text.
This method returns a Formatter::HTML::Textile object.
- document()
-
It returns a full HTML document, comprising the formatted textile source converted to HTML.
- fragment()
-
returns a minimal HTML chunk as textile.
- links()
-
Returns all the links found in the document, as a listref of hashrefs, with keys 'title', which is the title of the link, and 'url', which is the link.
- title()
-
Returns the title of the document
SEE ALSO
COPYRIGHT
Copyright 2005 Tom Insam tom@jerakeen.org