Tom Insam > CGI-Wiki-Formatter-Kwiki-0.03 > CGI::Wiki::Formatter::Kwiki

Download:
CGI-Wiki-Formatter-Kwiki-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View Bugs
Report a bug
Module Version: 0.03   Source  

NAME ^

CGI::Wiki::Formatter::Kwiki - A Kwiki formatter for CGI::Wiki.

DESCRIPTION ^

A formatter backend for CGI::Wiki.

It wraps the Formatter module from CGI::Kwiki, =head1 SYNOPSIS

  my $store     = CGI::Wiki::Store::SQLite->new( ... );
  # See below for parameter details.
  my $formatter = CGI::Wiki::Formatter::Kwiki->new( %config );
  my $wiki      = CGI::Wiki->new( store     => $store,
                                  formatter => $formatter );

METHODS ^

new
  my $formatter = CGI::Wiki::Formatter::Kwiki->new(
                 node_prefix     => 'wiki.cgi?node='
             );
format
  my $html = $formatter->format( $content );

Calls Kwiki::Formatter->process on the content (with some slight changes to allow for the fact that it's not in the context of a Kwiki.

find_internal_links
  my @links_to = $formatter->find_internal_links( $content );

Returns a list of all nodes that the supplied content links to.

SEE ALSO ^

CGI::Wiki, CGI::Kwiki

AUTHOR ^

Tom Insam (tom@jerakeen.org)

CREDITS ^

Thanks to Kake for writing CGI::Wiki in the first place, and davorg for giving me a nice lumpy data-set to test things on. And I have to credit whomever came up with this markup language, I suppose. Hi.

COPYRIGHT ^

     Copyright (C) 2003 Tom Insam.  All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.