Statocles::Page::File - A page wrapping a file (handle)
version 0.076
# File path my $page = Statocles::Page::File->new( path => '/path/to/page.txt', file_path => '/path/to/file.txt', ); # Filehandle open my $fh, '<', '/path/to/file.txt'; my $page = Statocles::Page::File->new( path => '/path/to/page.txt', fh => $fh, );
This Statocles::Page wraps a file handle in order to move files from one store to another.
The path to the file.
The file handle containing the contents of the page.
Dies. This page has no templates and no template variables.
my $fh = $page->render;
Return the filehandle to the file containing the content for this page.
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.