Add a bunch of Rael plugins.
[matthijs/upstream/blosxom-plugins.git] / general / kwiki
1 # Blosxom Plugin: kwiki
2 # Author(s): Rael Dornfest <rael@oreilly.com> 
3 # Version: 2003-07-27
4 # Documentation: See the bottom of this file or type: perldoc kwiki
5
6 package kwiki;
7
8 # --- Configurable variables -----
9
10 # --------------------------------
11
12 use 'CGI::Kwiki::Formatter';
13
14 sub start {
15   return $meta::markup eq 'kwiki' ? 1 : 0;
16 }
17
18 sub story {
19   my($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_;
20
21   $$body_ref = CGI::Kwiki::Formatter->process($$body_ref);
22   
23   return 1;
24 }
25
26 1;
27
28 __END__
29
30 =head1 NAME
31
32 Blosxom Plug-in: kwiki
33
34 =head1 SYNOPSIS
35
36 Purpose: Uses Brian Ingerson's Kwiki [http://www.kwiki.org/] wiki software
37 as a formatting tool for Weblog entries.
38
39 =head1 PREREQUISITES
40
41 The CGI::Kwiki Perl module.
42
43 =head1 VERSION
44
45 2003-07-27
46
47 =head1 AUTHOR
48
49 Rael Dornfest  <rael@oreilly.com>, http://www.raelity.org/
50
51 =head1 SEE ALSO
52
53 Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/
54
55 Blosxom Plugin Docs: http://blosxom.sourceforge.net/documentation/users/plugins.html
56
57 =head1 BUGS
58
59 Address bug reports and comments to the Blosxom mailing list 
60 [http://www.yahoogroups.com/group/blosxom].
61
62 =head1 LICENSE
63
64 Blosxom and this Blosxom Plug-in
65 Copyright 2003, Rael Dornfest 
66
67 Permission is hereby granted, free of charge, to any person obtaining a
68 copy of this software and associated documentation files (the "Software"),
69 to deal in the Software without restriction, including without limitation
70 the rights to use, copy, modify, merge, publish, distribute, sublicense,
71 and/or sell copies of the Software, and to permit persons to whom the
72 Software is furnished to do so, subject to the following conditions:
73
74 The above copyright notice and this permission notice shall be included
75 in all copies or substantial portions of the Software.
76
77 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
79 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
80 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
81 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
82 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
83 OTHER DEALINGS IN THE SOFTWARE.