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