auto/share/dist/Module-Starter-Plugin-CGIApp/titanium/Module.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 50 CC 2 SCAR 10.3
CC
2
Cov
0%
setup
6.0
runmode1
2.0
function1
2.0
CRAP 2.8
1  
2 =head1 NAME
3  
4 <tmpl_var module> - The great new <tmpl_var module> web application!
5  
6 =head1 SYNOPSIS
7  
8 use <tmpl_var module>;
9 my $app = <tmpl_var module>->new();
10 $app->run();
11  
12 =head1 ABSTRACT
13  
14 A brief summary of what <tmpl_var module> does.
15  
16 =cut
17  
18 package <tmpl_var module>;
19  
20 use warnings;
21 use strict;
22 use base 'Titanium';
23 use Carp qw( croak );
24 use File::ShareDir qw( dist_dir );
25 use File::Spec qw ();
26  
27 =head1 VERSION
28  
29 This document describes <tmpl_var module> Version 0.01
30  
31 =cut
32  
33 our $VERSION = '0.01';
34  
35 =head1 DESCRIPTION
36  
37 Overview of functionality and purpose of
38 web application module <tmpl_var module>...
39  
40 =head1 METHODS
41  
42 =head2 SUBCLASSED METHODS
43  
44 =head3 setup
45  
46 Sets up the run mode dispatch table and the start, error, and default run modes.
47 If the template path is not set, sets it to a default value.
48  
49 TODO: change all these values to ones more appropriate for your application.
50  
51 =cut
52  
53 sub setup {
54 my ($self) = @_;
55  
56 $self->start_mode('runmode1');
57 $self->error_mode('runmode1');
58 $self->run_modes( [qw/ runmode1 /] );
59 if ( !$self->tmpl_path ) {
60 $self->tmpl_path(
61 File::Spec->catdir( dist_dir('<tmpl_var distro>'), 'templates' ) );
62 }
63 $self->run_modes( AUTOLOAD => 'runmode1' );
64 return;
65 }
66  
67 =pod
68  
69 TODO: Other methods inherited from Titanium go here.
70  
71 =head2 RUN MODES
72  
73 =head3 runmode1
74  
75 * Purpose
76 * Expected parameters
77 * Function on success
78 * Function on failure
79  
80 TODO: Describe runmode1 here. Rename runmode1 to something more appropriate
81 for your application.
82  
83 =cut
84  
85 sub runmode1 {
86 my ($self) = @_;
87  
88 my $template = $self->load_tmpl;
89 $template->param( message => 'Hello world!' );
90 return $template->output;
91 }
92  
93 =head2 OTHER METHODS
94  
95 =head3 function1
96  
97 TODO: Describe function1 here. Rename function1 to something more appropriate
98 for your application.
99  
100 =cut
101  
102 sub function1 {
103 my ($self) = @_;
104  
105 return 1;
106 }
107  
108 =pod
109  
110 TODO: Other methods in your public interface go here.
111  
112 =cut
113  
114 # TODO: Private methods go here. Start their names with an _ so they are skipped
115 # by Pod::Coverage.
116  
117 =head1 BUGS AND LIMITATIONS
118  
119 There are no known problems with this module.
120  
121 Please report any bugs or feature requests to
122 C<bug-<tmpl_var rtname> at rt.cpan.org>, or through the web interface at
123 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=<tmpl_var distro>>.
124 I will be notified, and then you'll automatically be notified of progress on
125 your bug as I make changes.
126  
127 =head1 SEE ALSO
128  
129 L<Titanium|Titanium>
130  
131 =head1 THANKS
132  
133 List acknowledgements here or delete this section.
134  
135 =head1 AUTHOR
136  
137 <tmpl_var author>, C<< <<tmpl_var email_obfuscated>> >>
138  
139 =head1 LICENSE AND COPYRIGHT
140  
141 Copyright (C) <tmpl_var year>, <tmpl_var author>. All rights reserved.
142  
143 <tmpl_var license_blurb>
144  
145 The full text of the license can be found in the LICENSE file included
146 with this distribution.
147  
148 =cut
149  
150 1; # End of <tmpl_var module>
151  
152 __END__