- added cc and bcc attributes to simple api
[catagits/Catalyst-View-Email.git] / lib / Catalyst / Helper / View / Email / Template.pm
CommitLineData
529915ab 1package Catalyst::Helper::View::Email::Template;
2
3use strict;
4
5=head1 NAME
6
7Catalyst::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
15Helper for Template-based Email Views.
16
17=head2 METHODS
18
19=head3 mk_compclass
20
21=cut
22
23sub mk_compclass {
24 my ( $self, $helper ) = @_;
25 my $file = $helper->{file};
26 $helper->render_file( 'compclass', $file );
27}
28
29=head1 SEE ALSO
30
31L<Catalyst::View::Email>
32
33L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,
34L<Catalyst::Response>, L<Catalyst::Helper>
35
36=head1 AUTHOR
37
38J. Shirley C<jshirley@gmail.com>
39
40=head1 LICENSE
41
42This library is free software . You can redistribute it and/or modify
43it under the same terms as perl itself.
44
45=cut
46
471;
48
49__DATA__
50
51__compclass__
52package [% class %];
53
54use strict;
55use 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
68View for sending template-generated email from [% app %].
69
70=head1 AUTHOR
71
72[% author %]
73
74=head1 SEE ALSO
75
76L<[% app %]>
77
78=head1 LICENSE
79
80This library is free software, you can redistribute it and/or modify
81it under the same terms as Perl itself.
82
83=cut
84
851;