Catalyst::Helper::View::PDF::Reuse - Helper for PDF::Reuse Views


Catalyst-View-PDF-Reuse documentation Contained in the Catalyst-View-PDF-Reuse distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::PDF::Reuse - Helper for PDF::Reuse Views

SYNOPSIS

Top

To create a PDF::Reuse view in your Catalyst application, enter the following command:

 script/myapp_create.pl view PDF::Reuse PDF::Reuse

Then in MyApp.pm, add a configuration item for the View::PDF::Reuse include path:

 __PACKAGE__->config('View::PDF::Reuse' => {
   INCLUDE_PATH => __PACKAGE__->path_to('root','templates')
 });

DESCRIPTION

Top

Helper for PDF::Reuse Views.

METHODS

mk_compclass

AUTHOR

Top

Jon Allen, jj@jonallen.info

SEE ALSO

Top

Catalyst::View::PDF::Reuse

Penny's Arcade Open Source - http://www.pennysarcade.co.uk/opensource

COPYRIGHT & LICENSE

Top

NAME

Top

[% class %] - PDF::Reuse View for [% app %]

DESCRIPTION

Top

PDF::Reuse View for [% 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-PDF-Reuse documentation Contained in the Catalyst-View-PDF-Reuse distribution.
package Catalyst::Helper::View::PDF::Reuse;

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 base 'Catalyst::View::PDF::Reuse';

1;