NAME

Text::Livedoor::Wiki::Plugin::Function - Base Class For Function Plugin

DESCRIPTION

you can use this class as base to create Function Plugin.

SYNOPSIS

use strict;
__PACKAGE__->function_name('sup');
sub process {
my ( $class, $inline, $data ) = @_;
my $value = $data->{value};
$value = $inline->parse( $value );
return "<sup>$value</sup>";
}
1;
&function_name(argument_here){value here}

FUNCTION

function_name

you can specify your function name.

process

you must implement your self . return text what you want for your plugin.

process_mobile

if you did not implement this ,then $class->process() is used.

prepare_args

you can validate argument with this function.

prepare_value

you can validate value with this function.

uid

get unique id

opts

get option hash data

AUTHOR

polocky