NAME
Wiki::Toolkit - A toolkit for building Wikis.
DESCRIPTION
Helps you develop Wikis quickly by taking care of the boring bits
for you. You will still need to write some code - this isn't an
instant Wiki.
Wiki::Toolkit used to be called CGI::Wiki.
SEE ALSO
Tom Insam's Wiki::Toolkit::Kwiki is however an instant wiki, running
on a Wiki::Toolkit backend.
SYNOPSIS
# Set up a wiki object with an SQLite storage backend, and an
# inverted index/DB_File search backend. This store/search
# combination can be used on systems with no access to an actual
# database server.
my $store = Wiki::Toolkit::Store::SQLite->new(
dbname => "/home/wiki/store.db" );
my $indexdb = Search::InvertedIndex::DB::DB_File_SplitHash->new(
-map_name => "/home/wiki/indexes.db",
-lock_mode => "EX" );
my $search = Wiki::Toolkit::Search::SII->new(
indexdb => $indexdb );
my $wiki = Wiki::Toolkit->new( store => $store,
search => $search );
MAJOR METHODS
write_node
$wiki->write_node($node_name, $content, $checksum);
$wiki->write_node(
"Calthorpe Arms",
"A rather nice pub on Gray's Inn Road",
$checksum,
{ category => [ "Pub", "Pub Food", "Bloomsbury" ] }
);
format
my $cooked = $wiki->format($raw);
delete_node
$wiki->delete_node($node_name);
list_all_nodes
my @node_names = $wiki->list_all_nodes;
list_backlinks
my @links_to_me = $wiki->list_backlinks($node_name);