unfucked version
[catagits/Catalyst-View-Email.git] / lib / Catalyst / Helper / View / Email.pm
CommitLineData
529915ab 1package Catalyst::Helper::View::Email;
2
3use strict;
4
5=head1 NAME
6
7Catalyst::Helper::View::Email - Helper for Email Views
8
9=head1 SYNOPSIS
10
ea115f9b 11 $ script/myapp_create.pl view Email Email
529915ab 12
13=head1 DESCRIPTION
14
15Helper for 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';
56
57__PACKAGE__->config(
58 stash_key => 'email'
59);
60
61=head1 NAME
62
63[% class %] - Email View for [% app %]
64
65=head1 DESCRIPTION
66
67View for sending email from [% app %].
68
69=head1 AUTHOR
70
71[% author %]
72
73=head1 SEE ALSO
74
75L<[% app %]>
76
77=head1 LICENSE
78
79This library is free software, you can redistribute it and/or modify
80it under the same terms as Perl itself.
81
82=cut
83
841;