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