projects
/
catagits/CatalystX-HelpText.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
initial code to get help from files
[catagits/CatalystX-HelpText.git]
/
lib
/
CatalystX
/
HelpText
/
Role
/
HelpText.pm
1
package CatalystX::HelpText::Role::HelpText;
2
use Moose::Role;
3
use Try::Tiny;
4
5
sub 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
16
1;