initial import of catalyst.
[catagits/Catalyst-View-TT.git] / lib / Catalyst / Helper / View / TT.pm
CommitLineData
8077080c 1package Catalyst::Helper::View::TT;
2
3use strict;
4use IO::File;
5
6=head1 NAME
7
8Catalyst::Helper::View::TT - Helper for TT Views
9
10=head1 SYNOPSIS
11
12 bin/create view TT TT
13
14=head1 DESCRIPTION
15
16Helper for TT 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 my $class = $helper->{class};
28 my $comp = IO::File->new("> $file") or die qq/Couldn't open "$file", "$!"/;
29 print $comp <<"EOF";
30package $class;
31
32use strict;
33use base 'Catalyst::View::TT';
34
35=head1 NAME
36
37$class - TT View Component
38
39=head1 SYNOPSIS
40
41 Very simple to use
42
43=head1 DESCRIPTION
44
45Very nice component.
46
47=head1 AUTHOR
48
49Clever guy
50
51=head1 LICENSE
52
53This library is free software . You can redistribute it and/or modify it under
54the same terms as perl itself.
55
56=cut
57
581;
59EOF
60}
61
62=head1 SEE ALSO
63
64L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,
65L<Catalyst::Response>, L<Catalyst::Helper>
66
67=head1 AUTHOR
68
69Sebastian Riedel, C<sri@oook.de>
70
71=head1 LICENSE
72
73This library is free software . You can redistribute it and/or modify it under
74the same terms as perl itself.
75
76=cut
77
781;