Changeset 236


Ignore:
Timestamp:
Apr 23, 2006, 7:51:08 PM (14 years ago)
Author:
Dominic Hargreaves
Message:

Final tweaks.

Location:
wiki-toolkit/trunk/lib/Wiki/Toolkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Formatter/Multiple.pm

    r220 r236  
    1 package CGI::Wiki::Formatter::Multiple;
     1package Wiki::Toolkit::Formatter::Multiple;
    22use strict;
    33
     
    77=head1 NAME
    88
    9 CGI::Wiki::Formatter::Multiple - Allows a CGI::Wiki wiki to use more than one formatter.
     9Wiki::Toolkit::Formatter::Multiple - Allows a Wiki::Toolkit wiki to use more than one formatter.
    1010
    1111=head1 DESCRIPTION
    1212
    13 A "dummy" formatter for L<CGI::Wiki>.  Passes methods through to other
    14 CGI::Wiki formatters, depending on supplied metadata.
     13A "dummy" formatter for L<Wiki::Toolkit>.  Passes methods through to other
     14Wiki::Toolkit formatters, depending on supplied metadata.
    1515
    1616=head1 SYNOPSIS
    1717
    18   use CGI::Wiki::Formatter::Multiple;
    19   use CGI::Wiki::Formatter::Pod;
    20   use CGI::Wiki::Formatter::UseMod;
     18  use Wiki::Toolkit::Formatter::Multiple;
     19  use Wiki::Toolkit::Formatter::Pod;
     20  use Wiki::Toolkit::Formatter::UseMod;
    2121
    22   my $pod_fmtr = CGI::Wiki::Formatter::Pod->new(
     22  my $pod_fmtr = Wiki::Toolkit::Formatter::Pod->new(
    2323      node_prefix => "wiki.cgi?node=",
    2424  );
    2525
    26   my $usemod_fmtr = CGI::Wiki::Formatter::UseMod->new(
     26  my $usemod_fmtr = Wiki::Toolkit::Formatter::UseMod->new(
    2727      node_prefix    => "wiki.cgi?node=",
    2828      extended_links => 1,
     
    3030  );
    3131
    32   my $formatter = CGI::Wiki::Formatter::Multiple->new(
     32  my $formatter = Wiki::Toolkit::Formatter::Multiple->new(
    3333      documentation => $pod_fmtr,
    3434      discussion    => $usemod_fmtr,
     
    3636  );
    3737
    38   my $wiki = CGI::Wiki->new( store     => ...,
     38  my $wiki = Wiki::Toolkit->new( store     => ...,
    3939                             formatter => $formatter );
    4040  my $output = $wiki->format( "This is some discussion.",
     
    4747=item B<new>
    4848
    49   my $formatter = CGI::Wiki::Formatter::Multiple->new(
     49  my $formatter = Wiki::Toolkit::Formatter::Multiple->new(
    5050      label_1  => Formatter1->new( ... ),
    5151      label_2  => Formatter2->new( ... ),
    52       _DEFAULT => CGI::Wiki::Formatter::Default->new,
     52      _DEFAULT => Wiki::Toolkit::Formatter::Default->new,
    5353  );
    5454
     
    6565be used for any node that does not have a C<formatter> stored in its
    6666metadata.  The C<_DEFAULT> formatter, if not supplied to C<< ->new >>,
    67 will default to the very basic L<CGI::Wiki::Formatter::Default>.
     67will default to the very basic L<Wiki::Toolkit::Formatter::Default>.
    6868
    6969=cut
     
    7373    my $self = bless {}, $class;
    7474    unless ( $args{_DEFAULT} ) {
    75         require CGI::Wiki::Formatter::Default;
    76         $args{_DEFAULT} = CGI::Wiki::Formatter::Default->new;
     75        require Wiki::Toolkit::Formatter::Default;
     76        $args{_DEFAULT} = Wiki::Toolkit::Formatter::Default->new;
    7777    }
    7878    $self->{formatters} = \%args;
     
    9090
    9191The C<undef> second element of the parameter array in the example is
    92 there because when this is called from a L<CGI::Wiki> object, the wiki
     92there because when this is called from a L<Wiki::Toolkit> object, the wiki
    9393object passes itself in as the second parameter.
    9494
     
    126126=head1 SEE ALSO
    127127
    128 L<CGI::Wiki>
     128L<Wiki::Toolkit>
    129129
    130130=head1 AUTHOR
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Plugin.pm

    r229 r236  
    216216=head1 COPYRIGHT
    217217
    218      Copyright (C) 2003-6 Kake Pugh.  All Rights Reserved.
     218     Copyright (C) 2003-4 Kake Pugh.  All Rights Reserved.
     219     Copyright (C) 2006 the Wiki::Toolkit team. All Rights Reserved.
    219220
    220221This module is free software; you can redistribute it and/or modify it
Note: See TracChangeset for help on using the changeset viewer.