Mojolicious::Plugin::AssetPack::Asset - AssetPack asset storage
0.01
Mojolicious::Plugin::AssetPack::Asset is storage class for assets.
This class is EXPERIMENTAL.
$self = $self->content($data); $data = $self->content;
Boolean true if this file only exists in memory, false if stored on disk.
Either location on disk or a virtual location.
Returns the basename of "path".
$bytes = $self->slurp;
Read in the contents of the asset. Returns the data from "content" if "in_memory" is true.
$self = $self->->save;
"save" is used to write "content" to disk. This method does nothing if "in_memory" is true.
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.
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.