| Catalyst-View-PDF-Reuse documentation | Contained in the Catalyst-View-PDF-Reuse distribution. |
Catalyst::Helper::View::PDF::Reuse - Helper for PDF::Reuse Views
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')
});
Helper for PDF::Reuse Views.
Jon Allen, jj@jonallen.info
Penny's Arcade Open Source - http://www.pennysarcade.co.uk/opensource
Copyright 2009 Penny's Arcade Limited, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
[% class %] - PDF::Reuse View for [% app %]
PDF::Reuse View for [% app %].
[% author %]
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;