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