| Catalyst-View-Template-Declare documentation | Contained in the Catalyst-View-Template-Declare distribution. |
Catalyst::Helper::View::Template::Declare - Helper for creating a stub Template::Declare view
script/create.pl view TD Template::Declare
Helper for Template::Declare Views.
Jonathan Rockway <jrockway@cpan.org>
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
[% class %] - Template::Declare View for [% app %]
Template::Declare View for [% app %].
[% author %]
| Catalyst-View-Template-Declare documentation | Contained in the Catalyst-View-Template-Declare distribution. |
package Catalyst::Helper::View::Template::Declare; use strict; use warnings;
sub mk_compclass { my ( $self, $helper ) = @_; my $file = $helper->{file}; $helper->render_file( 'compclass', $file ); }
1; __DATA__ __compclass__ package [% class %]; use strict; use warnings; use base 'Catalyst::View::Template::Declare'; 1; # Put templates in separate modules, each under the # [% class %]::* namespace. Be sure to "use Template::Declare::Tags" # in each one. __END__