Commit | Line | Data |
8077080c |
1 | package Catalyst::Helper::View::TT; |
2 | |
3 | use strict; |
8077080c |
4 | |
caa68319 |
5 | our $VERSION = '0.45'; |
036d5905 |
6 | $VERSION = eval $VERSION; |
7 | |
8077080c |
8 | =head1 NAME |
9 | |
10 | Catalyst::Helper::View::TT - Helper for TT Views |
11 | |
12 | =head1 SYNOPSIS |
13 | |
90798082 |
14 | script/create.pl view HTML TT |
8077080c |
15 | |
16 | =head1 DESCRIPTION |
17 | |
18 | Helper for TT Views. |
19 | |
20 | =head2 METHODS |
21 | |
22 | =head3 mk_compclass |
23 | |
24 | =cut |
25 | |
26 | sub mk_compclass { |
27 | my ( $self, $helper ) = @_; |
d97e9999 |
28 | my $file = $helper->{file}; |
dc617c0e |
29 | $helper->render_file( 'compclass', $file ); |
d97e9999 |
30 | } |
8077080c |
31 | |
d97e9999 |
32 | =head1 SEE ALSO |
8077080c |
33 | |
d97e9999 |
34 | L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, |
35 | L<Catalyst::Response>, L<Catalyst::Helper> |
8077080c |
36 | |
37 | =head1 AUTHOR |
38 | |
d97e9999 |
39 | Sebastian Riedel, C<sri@oook.de> |
5be63f44 |
40 | Marcus Ramberg, C<mramberg@cpan.org> |
8077080c |
41 | |
42 | =head1 LICENSE |
43 | |
7bee9bfc |
44 | This library is free software . You can redistribute it and/or modify |
45 | it under the same terms as perl itself. |
8077080c |
46 | |
47 | =cut |
48 | |
49 | 1; |
8077080c |
50 | |
d97e9999 |
51 | __DATA__ |
8077080c |
52 | |
d97e9999 |
53 | __compclass__ |
54 | package [% class %]; |
713a5152 |
55 | use Moose; |
56 | use namespace::autoclean; |
d97e9999 |
57 | |
713a5152 |
58 | extends 'Catalyst::View::TT'; |
d97e9999 |
59 | |
3715305f |
60 | __PACKAGE__->config( |
61 | TEMPLATE_EXTENSION => '.tt', |
62 | render_die => 1, |
63 | ); |
d97e9999 |
64 | |
5be63f44 |
65 | =head1 NAME |
d97e9999 |
66 | |
5be63f44 |
67 | [% class %] - TT View for [% app %] |
d97e9999 |
68 | |
69 | =head1 DESCRIPTION |
70 | |
8544227a |
71 | TT View for [% app %]. |
8077080c |
72 | |
5be63f44 |
73 | =head1 SEE ALSO |
74 | |
75 | L<[% app %]> |
76 | |
740cab99 |
77 | =head1 AUTHOR |
78 | |
bd9d89ad |
79 | [% author %] |
8077080c |
80 | |
81 | =head1 LICENSE |
82 | |
8544227a |
83 | This library is free software. You can redistribute it and/or modify |
7d8aa5ec |
84 | it under the same terms as Perl itself. |
8077080c |
85 | |
86 | =cut |
87 | |
88 | 1; |