package CatalystX::HelpText::Role::HelpText;
use Moose::Role;
use Try::Tiny;

sub help_text {
    my ($self, $c, $key) = @_;
    try {
        return $c->model('Help')->get_help_text_for($c, $key);
    }
    catch {
        $c->log->warn("Error retrieving help_text: ".$_);
        return '';
    };
}

1;