NAME

App::Embra::File - a file from your site

VERSION

version 0.001

DESCRIPTION

This represents a file to be included in your site.

ATTRIBUTES

name

The name of the file. Change this to change where the file will appear in the site.

content

The content of the file. Change this to change the content of the file when it appears in the site. Defaults to the contents of _original_name.

mode

The permissions of the file. Defaults to 0644.

_original_name

The original name of this file. This is automatically saved from the name attributes used to construct the object, and can't be altered.

notes

A hash ref which stores extra values associated with the file. Transform plugins will read and write notes, and Assemble plugins will read notes.

ext

The extention of the file's name. Changing this will cause the file's name to be updated to match.

METHODS

with_ext

$file->with_ext( $ext );

Returns file's name with its extension changed to <$ext>.

update_notes

$file->update_notes( %more_notes );

Merges %more_notes into the file's existing notes.

AUTHOR

Daniel Holz <dgholz@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Daniel Holz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.