NAME
Mojolicious::Plugin::AssetPack::Asset - AssetPack asset storage
VERSION
0.01
DESCRIPTION
Mojolicious::Plugin::AssetPack::Asset is storage class for assets.
This class is EXPERIMENTAL.
ATTRIBUTES
content
$self = $self->content($data);
$data = $self->content;
in_memory
Boolean true if this file only exists in memory, false if stored on disk.
path
Either location on disk or a virtual location.
METHODS
basename
Returns the basename of "path".
slurp
$bytes = $self->slurp;
Read in the contents of the asset. Returns the data from "content" if "in_memory" is true.
save
$self = $self->->save;
"save" is used to write "content" to disk. This method does nothing if "in_memory" is true.
COPYRIGHT AND LICENSE
Copyright (C) 2014, 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.
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org