Catalyst::Helper::View::TT - Helper for TT Views


Catalyst-View-TT documentation Contained in the Catalyst-View-TT distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::TT - Helper for TT Views

SYNOPSIS

Top

    script/create.pl view HTML TT

DESCRIPTION

Top

Helper for TT Views.

METHODS

mk_compclass

SEE ALSO

Top

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

AUTHOR

Top

Sebastian Riedel, sri@oook.de Marcus Ramberg, mramberg@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 %] - TT View for [% app %]

DESCRIPTION

Top

TT View for [% app %].

SEE ALSO

Top

[% app %]

AUTHOR

Top

[% author %]

LICENSE

Top

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


Catalyst-View-TT documentation Contained in the Catalyst-View-TT distribution.
package Catalyst::Helper::View::TT;

use strict;

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::TT';

__PACKAGE__->config(
    TEMPLATE_EXTENSION => '.tt',
    render_die => 1,
);

1;