- Timestamp:
- 12/20/09 16:18:44 (2 years ago)
- Location:
- wiki-toolkit-formatter-pod/trunk/lib/Wiki
- Files:
-
- 1 added
- 1 modified
- 1 moved
-
. (added)
-
Toolkit (moved) (moved from wiki-toolkit-formatter-pod/trunk/lib/CGI/Wiki)
-
Toolkit/Formatter/Pod.pm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-formatter-pod/trunk/lib/Wiki/Toolkit/Formatter/Pod.pm
r98 r517 1 package CGI::Wiki::Formatter::Pod;1 package Wiki::Toolkit::Formatter::Pod; 2 2 3 3 use strict; … … 11 11 =head1 NAME 12 12 13 CGI::Wiki::Formatter::Pod - A Pod to HTML formatter for CGI::Wiki.13 Wiki::Toolkit::Formatter::Pod - A Pod to HTML formatter for Wiki::Toolkit. 14 14 15 15 =head1 DESCRIPTION 16 16 17 A Pod to HTML formatter backend for L< CGI::Wiki>.17 A Pod to HTML formatter backend for L<Wiki::Toolkit>. 18 18 19 19 =head1 SYNOPSIS 20 20 21 my $store = CGI::Wiki::Store::SQLite->new( ... );22 my $formatter = CGI::Wiki::Formatter::Pod->new;23 my $wiki = CGI::Wiki->new( store => $store,24 formatter => $formatter );21 my $store = Wiki::Toolkit::Store::SQLite->new( ... ); 22 my $formatter = Wiki::Toolkit::Formatter::Pod->new; 23 my $wiki = Wiki::Toolkit->new( store => $store, 24 formatter => $formatter ); 25 25 26 Go look at L< CGI::Wiki> to find out more. This module is distributed26 Go look at L<Wiki::Toolkit> to find out more. This module is distributed 27 27 separately solely for convenience of testing and maintenance; it's 28 28 probably not too useful on its own. … … 34 34 =item B<new> 35 35 36 my $formatter = CGI::Wiki::Formatter::Pod->new(36 my $formatter = Wiki::Toolkit::Formatter::Pod->new( 37 37 node_prefix => 'wiki.cgi?node=', 38 38 usemod_extended_links => 0, … … 49 49 names are forced to ucfirst, ie first letter of each word is capitalised.) 50 50 51 B<Note:> You must have L< CGI::Wiki::Formatter::UseMod> installed if51 B<Note:> You must have L<Wiki::Toolkit::Formatter::UseMod> installed if 52 52 you wish to use the C<usemod_extended_links> parameter. 53 53 … … 61 61 $self->{_node_prefix} = $node_prefix; 62 62 $self->{_usemod_extended_links} = $args{usemod_extended_links} || 0; 63 my $link_mapper = CGI::Wiki::Formatter::Pod::LinkMapper->new(63 my $link_mapper = Wiki::Toolkit::Formatter::Pod::LinkMapper->new( 64 64 node_prefix => $node_prefix ); 65 65 $self->{_link_mapper} = $link_mapper; … … 96 96 sub _linkify { 97 97 my ($self, $node) = @_; 98 require CGI::Wiki::Formatter::UseMod;99 my $formatter = CGI::Wiki::Formatter::UseMod->new(98 require Wiki::Toolkit::Formatter::UseMod; 99 my $formatter = Wiki::Toolkit::Formatter::UseMod->new( 100 100 implicit_links => 0, 101 101 extended_links => 1, … … 112 112 =head1 SEE ALSO 113 113 114 L< CGI::Wiki>, L<Pod::Tree::HTML>.114 L<Wiki::Toolkit>, L<Pod::Tree::HTML>. 115 115 116 116 =head1 AUTHOR … … 130 130 131 131 132 package CGI::Wiki::Formatter::Pod::LinkMapper;132 package Wiki::Toolkit::Formatter::Pod::LinkMapper; 133 133 134 134 sub new {
