The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::AssetPack::Preprocessor - Base class for preprocessors

DESCRIPTION

Mojolicious::Plugin::AssetPack::Preprocessor is a base class for preprocessors.

ATTRIBUTES

errmsg

Holds the error from last "process".

METHODS

can_process

  $bool = $self->can_process;

Returns true.

checksum

  $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.

process

  $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.

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