added some documentation
[catagits/CatalystX-HelpText.git] / lib / CatalystX / HelpText.pm
CommitLineData
e226a3e6 1package CatalystX::HelpText;
2use Moose;
3use namespace::autoclean;
4
51;
6
7=head1 NAME
8
47227b17 9CatalystX::HelpText - Helper to include text/html snippets in Catalyst TT View templates
e226a3e6 10
47227b17 11=head1 SYNOPSIS
e226a3e6 12
47227b17 13Create a model class in your Catalyst project like:
14 package TestApp::Model::Help;
15 use Moose;
16 use namespace::autoclean;
e226a3e6 17
47227b17 18 extends 'CatalystX::HelpText::Model';
19
20 1;
21
22Configure it setting value for:
23 - help_files_path: where the help files will be found
24 - help_files_ext: what is the extension for the help files (default html)
25
26Create files with the text/html to be included and store them at help_files_path.
27
28Apply the CatalystX::HelpText::ViewRole in your TT View.
29
30Uses the [% helptext('SomeHelpTopic') %] in your templates to include the file SomeHelpTopic.html in the page.
31
32Uses the script bin/search_undocumented_templates.pl to find the missing help text files.
e226a3e6 33
34=head1 AUTHOR
35
47227b17 36Thomas Doran,C<t0m at state51.co.uk>
3259663d 37Cinxgler Mariaca Minda,C<cinxgler at ci-info.com>
e226a3e6 38
3259663d 39=head1 COPYRIGHT
40
41Copyright state51.
42
43=head1 LICENSE
e226a3e6 44
45This sofware is free software, and is licensed under the same terms as perl itself.
46
47=cut
48