Catalyst::Helper::View::Email::Template - Helper for Templated Email Views


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

Index


Code Index:

NAME

Top

Catalyst::Helper::View::Email::Template - Helper for Templated Email Views

SYNOPSIS

Top

    $ script/myapp_create.pl view Email::Template Email::Template

DESCRIPTION

Top

Helper for Template-based Email Views.

METHODS

mk_compclass

SEE ALSO

Top

Catalyst::View::Email

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

AUTHOR

Top

J. Shirley jshirley@gmail.com

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 %] - Templated Email View for [% app %]

DESCRIPTION

Top

View for sending template-generated email from [% app %].

AUTHOR

Top

[% author %]

SEE ALSO

Top

[% app %]

LICENSE

Top

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


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

use strict;
our $VERSION = '0.31';
$VERSION = eval $VERSION;
sub mk_compclass {
    my ( $self, $helper ) = @_;
    my $file = $helper->{file};
    $helper->render_file( 'compclass', $file );
}

1;

__DATA__

__compclass__
package [% class %];

use strict;
use base 'Catalyst::View::Email::Template';

__PACKAGE__->config(
    stash_key       => 'email',
    template_prefix => ''
);

1;