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