Mojolicious::Plugin::AssetPack::Asset - Represents an asset file
This module repesents a file on disk.
This module is EXPERIMENTAL.
$fh = $self->handle; $self = $self->handle($fh);
Returns a filehandle to "path" with the correct read/write mode, dependent on the file system permissions.
$str = $self->path; $self = $self->path($str);
Holds the location of the file.
$self = $self->add_chunk($chunk);
Will append a $chunk to the "path".
$chunk
$content = $self->slurp;
Will return the contents of "path".
$self = $self->spurt($content);
Used to truncate and write $content to "path".
$content
Copyright (C) 2015, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Mojolicious::Plugin::AssetPack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AssetPack
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack
For more information on module installation, please visit the detailed CPAN module installation guide.