Commit | Line | Data |
529915ab |
1 | package Catalyst::Helper::View::Email; |
2 | |
beda8c31 |
3 | our $VERSION = '0.31'; |
9e7944bd |
4 | $VERSION = eval $VERSION; |
5 | |
529915ab |
6 | use strict; |
7 | |
8 | =head1 NAME |
9 | |
10 | Catalyst::Helper::View::Email - Helper for Email Views |
11 | |
12 | =head1 SYNOPSIS |
13 | |
ea115f9b |
14 | $ script/myapp_create.pl view Email Email |
529915ab |
15 | |
16 | =head1 DESCRIPTION |
17 | |
18 | Helper for Email Views. |
19 | |
20 | =head2 METHODS |
21 | |
22 | =head3 mk_compclass |
23 | |
24 | =cut |
25 | |
26 | sub mk_compclass { |
27 | my ( $self, $helper ) = @_; |
28 | my $file = $helper->{file}; |
29 | $helper->render_file( 'compclass', $file ); |
30 | } |
31 | |
32 | =head1 SEE ALSO |
33 | |
34 | L<Catalyst::View::Email> |
35 | |
36 | L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, |
37 | L<Catalyst::Response>, L<Catalyst::Helper> |
38 | |
39 | =head1 AUTHOR |
40 | |
41 | J. Shirley C<jshirley@gmail.com> |
42 | |
43 | =head1 LICENSE |
44 | |
45 | This library is free software . You can redistribute it and/or modify |
46 | it under the same terms as perl itself. |
47 | |
48 | =cut |
49 | |
50 | 1; |
51 | |
52 | __DATA__ |
53 | |
54 | __compclass__ |
55 | package [% class %]; |
56 | |
57 | use strict; |
58 | use base 'Catalyst::View::Email'; |
59 | |
60 | __PACKAGE__->config( |
61 | stash_key => 'email' |
62 | ); |
63 | |
64 | =head1 NAME |
65 | |
66 | [% class %] - Email View for [% app %] |
67 | |
68 | =head1 DESCRIPTION |
69 | |
70 | View for sending email from [% app %]. |
71 | |
72 | =head1 AUTHOR |
73 | |
74 | [% author %] |
75 | |
76 | =head1 SEE ALSO |
77 | |
78 | L<[% app %]> |
79 | |
80 | =head1 LICENSE |
81 | |
82 | This library is free software, you can redistribute it and/or modify |
83 | it under the same terms as Perl itself. |
84 | |
85 | =cut |
86 | |
87 | 1; |