Template::Plugin::KwikiFormat - filter to convert kwiki formatted text to html
[% USE KwikiFormat %] [% FILTER kwiki %] == title *bold* /italic/ [% END %]
A wrapper around Kwiki::Formatter.
Template::Plugin::KwikiFormat allows you to use KwikiFormats in data displayed by Template::Toolkit.
WikiLinks don't work without a kwiki, so we need some magic / dirty tricks to make it work (i.e.: subroutine redefinition at runtime)
I slightly altered the meaning of ForcedLinks. In Kwiki, something like this
[SomePage see here]
results in a link to the Kwiki-Page "SomePage" labeld with "see here".
With Template::Plugin::KwikiFormat, you can (ab)use this syntax for local (relative) links. i.e.:
[/some/page.html see here]
gets rendered as a link to "/some/page.html" labled with "see here".
One of the fragments inside the square bracktes needs to start with a slash for this to work.
generate new plugin
Thomas Klausner, email@example.com, http://domm.zsi.at
With a lot of thanks to Jon Åslund (Jooon) from #kwiki for coming up with how to do it.
Additional thanks to Ian Langworth.
From March 2006, this module is taken over and maintained by Satoshi Tanimoto <firstname.lastname@example.org>
Copyright 2004, Thomas Klausner, ZSI
You may use, modify, and distribute this package under the same terms as Perl itself.