Sledge::Plugin::ShowText - plugin to show text from data
package Your::Pages; use Sledge::Plugin::ShowText; use Your::Data; sub dispatch_foo { my $self = shift; my $id = $self->r->param('id'); my $text = Your::Data->retrieve($id)->text; return $self->show_text($text); } sub dispatch_bar { my $self = shift; if (.....) { return $self->show_text('ok'); } else { return $self->show_text('ng'); } }
Sledge::Plugin::ShowText is show text Plugin for Sledge. You can easy to generate plain text.
KIMURA, takefumi <takefumi@mobilefactory.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Slege::Plugin::ShowImage
To install Sledge::Plugin::ShowText, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sledge::Plugin::ShowText
CPAN shell
perl -MCPAN -e shell install Sledge::Plugin::ShowText
For more information on module installation, please visit the detailed CPAN module installation guide.