initial code to get help from files
[catagits/CatalystX-HelpText.git] / lib / CatalystX / HelpText / Role / HelpText.pm
CommitLineData
3259663d 1package CatalystX::HelpText::Role::HelpText;
2use Moose::Role;
3use Try::Tiny;
4
5sub help_text {
6 my ($self, $c, $key) = @_;
7 try {
8 return $c->model('Help')->get_help_text_for($c, $key);
9 }
10 catch {
11 $c->log->warn("Error retrieving help_text: ".$_);
12 return '';
13 };
14}
15
161;