Mojolicious::Plugin::AssetPack::Asset - AssetPack asset storage
0.01
Mojolicious::Plugin::AssetPack::Asset is storage class for assets.
This class is EXPERIMENTAL.
Boolean true if this file only exists in memory, false if stored on disk.
Either location on disk, HTTP URL or a virtual location (in case of "in_memory").
$self = $self->add_chunk($bytes);
Will store data internally, which later can be written to disk using "save".
Returns the basename of "url".
$bytes = $self->slurp;
Read in the contents of the asset. Returns the data from "add_chunk" if "in_memory" is true.
$self = $self->->save;
"save" is used to write all the "add_chunk" data 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.