Catalyst::Helper::View::Template::Declare - Helper for creating a stub


Catalyst-View-Template-Declare documentation Contained in the Catalyst-View-Template-Declare distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::Template::Declare - Helper for creating a stub Template::Declare view

SYNOPSIS

Top

    script/create.pl view TD Template::Declare

DESCRIPTION

Top

Helper for Template::Declare Views.

METHODS

mk_compclass

AUTHOR

Top

Jonathan Rockway <jrockway@cpan.org>

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

Top

[% class %] - Template::Declare View for [% app %]

DESCRIPTION

Top

Template::Declare View for [% app %].

AUTHOR

Top

[% author %]

SEE ALSO

Top

[% app %]

Catalyst::View::Template::Declare

Template::Declare::Tags

Template::Declare


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__