1 package CatalystX::HelpText;
5 our $VERSION = '0.001';
11 CatalystX::HelpText - Helper to include text/html snippets in Catalyst View templates
15 Create a model class in your Catalyst project like:
16 package TestApp::Model::Help;
18 use namespace::autoclean;
20 extends 'CatalystX::HelpText::Model';
24 Configure it setting value for:
30 Where the help files will be found
34 What is the extension for the help files (default: html)
38 What tag will be used to wrap the shippet (default: span)
40 =item wrapper_css_class
42 What css class will be applied to the wrapper tag (default: help_text)
46 Create files with the text/html to be included and store them at help_files_path.
48 Apply the L<CatalystX::HelpText::ViewRole> in your View.
50 Uses the C<< [% helptext('SomeHelpTopic') %] >>in your templates to include the
51 file C<SomeHelpTopic.html> in the page.
53 Uses the script C<search_undocumented_templates.pl> to find the missing help text files.
59 =item L<CatalystX::HelpText::Model>
61 =item L<CatalystX::HelpText::ViewRole>
67 Toomas Doran, C<< t0m at state51.co.uk >>
69 Cinxgler Mariaca Minda, C<< cinxgler at ci-info.com >>
73 Copyright Oscar Music and Media 2011.
77 This sofware is free software, and is licensed under the same terms as perl itself.