source:library/perl/trunk/Text-Trac/lib/Text/Trac.pm
Text::Trac - Perl extension for formatting text with Trac Wiki Style.
Version 0.08
use Text::Trac;
my $parser = Text::Trac->new(
trac_url => 'http://trac.mizzy.org/public/',
disable_links => [ qw( changeset ticket ) ],
);
$parser->parse($text);
print $parser->html;
Text::Trac parses text with Trac WikiFormatting and convert it to html format.
Constructs Text::Trac object.
Available arguments are:
Base URL for TracLinks.Default is /. You can specify each type of URL individually. Available URLs are:
tracattachmenturl:: tracchangeseturl:: traclogurl:: tracmilestoneurl:: tracreporturl:: tracsourceurl:: tracticketurl:: tracwikiurl::
Specify TracLink types you want to disable. All types are enabled if you don't specify this option.
my $parser = Text::Trac->new(
disable_links => [ qw( changeset ticket ) ],
);
Specify TracLink types you want to enable.Other types are disabled. You cannot use both disablelinks and enablelinks at once.
my $parser = Text::Trac->new(
enable_links => [ qw( changeset ticket ) ],
);
Parses text and converts it to html format.
An alias of parse method.
Return converted html string.
Text::Hatena:: Trac http://www.edgewall.com/trac/:: Trac WikiFormatting http://projects.edgewall.com/trac/wiki/WikiFormatting::
Gosuke Miyashita, <gosukenator at gmail.com>
Hideaki Tanaka, <drawn.boy at gmail.com)>
Please report any bugs or feature requests to bug-text-trac at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Trac. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Text::Trac
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
Copyright 2006 Gosuke Miyashita, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.