Mojolicious::Plugin::AssetPack::Preprocessor - Base class for preprocessors
Mojolicious::Plugin::AssetPack::Preprocessor is a base class for preprocessors.
Path to the current directory, before Mojolicious::Plugin::AssetPack::Preprocessor did any chdir.
chdir
DEPRECATED
$bool = $self->can_process;
Returns true.
$str = $self->checksum($text, $path);
Returns the checksum for a given chunk of $text. $text is a scalar ref containing the text from the asset. The default is to use "md5_sum" in Mojo::Util.
$text
$self = $self->process($assetpack, $text, $path);
This method is used to process a given $text. $text is a scalar ref, holding the text from the asset at location $path. $assetpack is an Mojolicious::Plugin::AssetPack instance.
$path
$assetpack
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.