NAME

Web::AssetLib::MinifierEngine - a base class for writing your own Minifier Engine

SYNOPSIS

    package My::Library::MinifierEngine;

    use Method::Signatures;
    use Moose;

    extends 'Web::AssetLib::MinifierEngine';

    method minify( :$contents!, :$type ) {
		# do minification
		return $minified;
    }

USAGE

If you have a need for a special file minification scenario, you can simply extend this class, and it will plug in to the rest of the Web::AssetLib pipeline.

The only requirement is that your Output Engine implements the minify(...) method, which returns the minfied string.

IMPLEMENTATION

minify( :$contents!, :$type )

$contents and $type are both strings. Minify the content, and return it as a string.

SEE ALSO

Web::AssetLib::MinifierEngine::Standard

AUTHOR

Ryan Lang <rlang@cpan.org>