Changeset 517 for wiki-toolkit-formatter-pod
- Timestamp:
- 12/20/09 16:18:44 (2 years ago)
- Location:
- wiki-toolkit-formatter-pod/trunk
- Files:
-
- 1 added
- 8 modified
- 1 moved
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (4 diffs)
-
TODO (modified) (1 diff)
-
lib/Wiki (added)
-
lib/Wiki/Toolkit (moved) (moved from wiki-toolkit-formatter-pod/trunk/lib/CGI/Wiki)
-
lib/Wiki/Toolkit/Formatter/Pod.pm (modified) (8 diffs)
-
t/01_formatting.t (modified) (2 diffs)
-
t/02_extended_links.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-formatter-pod/trunk/Changes
r98 r517 1 0.04 2 Rename to Wiki::Toolkit::Formatter::Pod 3 1 4 0.03 12 October 2003 2 5 Added note to docs - you need to have CGI::Wiki::Formatter::UseMod -
wiki-toolkit-formatter-pod/trunk/MANIFEST
r96 r517 4 4 README 5 5 TODO 6 lib/ CGI/Wiki/Formatter/Pod.pm6 lib/Wiki/Toolkit/Formatter/Pod.pm 7 7 t/01_formatting.t 8 8 t/02_extended_links.t -
wiki-toolkit-formatter-pod/trunk/Makefile.PL
r92 r517 1 1 use ExtUtils::MakeMaker; 2 2 3 WriteMakefile( NAME => " CGI::Wiki::Formatter::Pod",4 VERSION_FROM => "lib/ CGI/Wiki/Formatter/Pod.pm",3 WriteMakefile( NAME => "Wiki::Toolkit::Formatter::Pod", 4 VERSION_FROM => "lib/Wiki/Toolkit/Formatter/Pod.pm", 5 5 PREREQ_PM => { 'IO::Scalar' => 0, 6 6 'Pod::Tree' => '1.10' # for link map -
wiki-toolkit-formatter-pod/trunk/README
r98 r517 1 1 NAME 2 CGI::Wiki::Formatter::Pod - A Pod to HTML formatter for CGI::Wiki.2 Wiki::Toolkit::Formatter::Pod - A Pod to HTML formatter for Wiki::Toolkit. 3 3 4 4 DESCRIPTION 5 A Pod to HTML formatter backend for CGI::Wiki.5 A Pod to HTML formatter backend for Wiki::Toolkit. 6 6 7 7 SYNOPSIS 8 my $store = CGI::Wiki::Store::SQLite->new( ... );9 my $formatter = CGI::Wiki::Formatter::Pod->new;10 my $wiki = CGI::Wiki->new( store => $store,11 formatter => $formatter );8 my $store = Wiki::Toolkit::Store::SQLite->new( ... ); 9 my $formatter = Wiki::Toolkit::Formatter::Pod->new; 10 my $wiki = Wiki::Toolkit->new( store => $store, 11 formatter => $formatter ); 12 12 13 Go look at CGI::Wikito find out more. This module is distributed13 Go look at Wiki::Toolkit to find out more. This module is distributed 14 14 separately solely for convenience of testing and maintenance; it's 15 15 probably not too useful on its own. … … 17 17 METHODS 18 18 new 19 my $formatter = CGI::Wiki::Formatter::Pod->new(19 my $formatter = Wiki::Toolkit::Formatter::Pod->new( 20 20 node_prefix => 'wiki.cgi?node=', 21 21 usemod_extended_links => 0, … … 34 34 capitalised.) 35 35 36 Note: You must have CGI::Wiki::Formatter::UseMod installed if you36 Note: You must have Wiki::Toolkit::Formatter::UseMod installed if you 37 37 wish to use the "usemod_extended_links" parameter. 38 38 … … 44 44 45 45 SEE ALSO 46 CGI::Wiki, Pod::Tree::HTML.46 Wiki::Toolkit, Pod::Tree::HTML. 47 47 48 48 AUTHOR -
wiki-toolkit-formatter-pod/trunk/TODO
r92 r517 1 1 - Needs more tests. 2 2 3 - Need to write find_internal_links method (see CGI::Wiki::Formatter::Default).3 - Need to write find_internal_links method (see Wiki::Toolkit::Formatter::Default). -
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 { -
wiki-toolkit-formatter-pod/trunk/t/01_formatting.t
r92 r517 1 1 use Test::More tests => 5; 2 2 3 use_ok( " CGI::Wiki::Formatter::Pod" );3 use_ok( "Wiki::Toolkit::Formatter::Pod" ); 4 4 5 my $formatter = CGI::Wiki::Formatter::Pod->new;6 isa_ok( $formatter, " CGI::Wiki::Formatter::Pod" );5 my $formatter = Wiki::Toolkit::Formatter::Pod->new; 6 isa_ok( $formatter, "Wiki::Toolkit::Formatter::Pod" ); 7 7 8 8 my $pod = "A L<TestLink>"; … … 11 11 "links to other wiki page" ); 12 12 13 $formatter = CGI::Wiki::Formatter::Pod->new(13 $formatter = Wiki::Toolkit::Formatter::Pod->new( 14 14 node_prefix => "wiki-pod.cgi?node=" ); 15 isa_ok( $formatter, " CGI::Wiki::Formatter::Pod" );15 isa_ok( $formatter, "Wiki::Toolkit::Formatter::Pod" ); 16 16 $html = $formatter->format($pod); 17 17 like( $html, qr/<A HREF="wiki-pod.cgi\?node=TestLink">/, -
wiki-toolkit-formatter-pod/trunk/t/02_extended_links.t
r96 r517 1 1 use strict; 2 2 use Test::More; 3 use CGI::Wiki::Formatter::Pod;3 use Wiki::Toolkit::Formatter::Pod; 4 4 5 eval { require CGI::Wiki::Formatter::UseMod; };5 eval { require Wiki::Toolkit::Formatter::UseMod; }; 6 6 7 7 if ( $@ ) { 8 plan skip_all =>" CGI::Wiki::Formatter::UseMod required to run these tests";8 plan skip_all =>"Wiki::Toolkit::Formatter::UseMod required to run these tests"; 9 9 } else { 10 10 plan tests => 3; 11 11 12 my $formatter = CGI::Wiki::Formatter::Pod->new(12 my $formatter = Wiki::Toolkit::Formatter::Pod->new( 13 13 usemod_extended_links => 1, 14 14 );
