The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Statocles::Page::File - A page wrapping a file (handle)

VERSION

version 0.058

SYNOPSIS

    # 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,
    );

DESCRIPTION

This Statocles::Page wraps a file handle in order to move files from one store to another.

ATTRIBUTES

file_path

The path to the file.

fh

The file handle containing the contents of the page.

METHODS

vars

Dies. This page has no templates and no template variables.

render

    my $fh = $page->render;

Return the filehandle to the file containing the content for this page.

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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.