- COPYRIGHT AND LICENSE
Statocles::Page::File - A page wrapping a file (handle)
# 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, );
The path to the file.
The file handle containing the contents of the page.
This page has no DOM, so trying to access it throws an exception.
Dies. This page has no templates and no template variables.
Returns false. This page has no DOM.
my $fh = $page->render;
Return the filehandle to the file containing the content for this page.
Doug Bell <email@example.com>
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.