| 1 | package Catalyst::Helper::View::Template::Declare; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Catalyst::Helper::View::Template::Declare - Helper for creating a stub | ||
| 9 | Template::Declare view | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | script/create.pl view TD Template::Declare | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | Helper for Template::Declare Views. | ||
| 18 | |||
| 19 | =head2 METHODS | ||
| 20 | |||
| 21 | =head3 mk_compclass | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | sub mk_compclass { | ||
| 26 | my ( $self, $helper ) = @_; | ||
| 27 | my $file = $helper->{file}; | ||
| 28 | $helper->render_file( 'compclass', $file ); | ||
| 29 | } | ||
| 30 | |||
| 31 | =head1 AUTHOR | ||
| 32 | |||
| 33 | Jonathan Rockway C<< <jrockway@cpan.org> >> | ||
| 34 | |||
| 35 | =head1 LICENSE | ||
| 36 | |||
| 37 | This library is free software . You can redistribute it and/or modify | ||
| 38 | it under the same terms as perl itself. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | 1; | ||
| 43 | |||
| 44 | __DATA__ |