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