Hi there,
I am currently trying to add some Kwiki shortcuts to the bas distro. It
shouldn´t be that complicated, but subclassing the Kwiki::Formatter
module doesn´t lead to any real result. Here´s what I got so far:
package HSF::Formatter;
use strict;
use warnings;
use Kwiki::Formatter '-Base';
const class_title => 'HSF Formatter';
sub formatter_classes {
qw(
Spoon::Formatter::WaflPhrase
Spoon::Formatter::WaflBlock
HSF::Formatter::UserID
Heading Paragraph Preformatted Comment
Strong Ulist Olist Item Table TableRow TableCell
Line Emphasize Underline Delete Inline MDash NDash Asis
HyperLink TitledHyperLink TitledMailLink MailLink
ForcedLink TitledWikiLink WikiLink
);
}
package HSF::Formatter::UserID;
use base 'Spoon::Formatter::Unit';
const formatter_id => 'userid';
const pattern_start => qr/[EMAIL PROTECTED](?=[^-])/;
const html => 'Userid';
which should then substitue @@ with the current username (which is
static at the moment, but thats not part of the problem)... config.yaml
was instructed to load the new formatter, but nothing ever happens ..
any ideas?
kind regards,
--
FLoh
"<[Thomas]> hab ein file von 699.92MB aufm PC möchte des aufn
700MB rolling packen geht des?"