CSS-SpriteMaker-Simple
view release on metacpan or search on metacpan
lib/CSS/SpriteMaker/Simple.pm view on Meta::CPAN
Creates and returns a new C<CSS::SpriteMaker::Simple> object.
Takes no arguments.
=head2 C<spritify>
$s->spritify( qw/list of dirs with pics or pics/ );
$s->spritify( qw/list of dirs with pics or pics/, [qw/ignore these/] );
Returns its invocant. Takes a list of paths and searches them for pics to
use as sprites. The last element can be an arrayref, in which case, this
will be a list of filenames (no directory portion) that will be ignored.
Will croak if no paths are given or it has trouble
creating the temporary directory to assemble the sprite in.
=head2 C<css>
say $s->css;
Returns CSS code of the sprite. Must be called after a call to L</spritify>
=head2 C<spurt>
say $s->spurt('sprite.css');
Write CSS code of the sprite into a file. Must be called after a call to
L</spritify>
=head1 SEE ALSO
L<Mojolicious::Plugin::AssetPack>
=for html <div style="background: url(http://zoffix.com/CPAN/Dist-Zilla-Plugin-Pod-Spiffy/icons/hr.png);height: 18px;"></div>
=head1 REPOSITORY
=for html <div style="display: table; height: 91px; background: url(http://zoffix.com/CPAN/Dist-Zilla-Plugin-Pod-Spiffy/icons/section-github.png) no-repeat left; padding-left: 120px;" ><div style="display: table-cell; vertical-align: middle;">
Fork this module on GitHub:
L<https://github.com/zoffixznet/CSS-SpriteMaker-Simple>
=for html </div></div>
=head1 BUGS
=for html <div style="display: table; height: 91px; background: url(http://zoffix.com/CPAN/Dist-Zilla-Plugin-Pod-Spiffy/icons/section-bugs.png) no-repeat left; padding-left: 120px;" ><div style="display: table-cell; vertical-align: middle;">
To report bugs or request features, please use
L<https://github.com/zoffixznet/CSS-SpriteMaker-Simple/issues>
If you can't access GitHub, you can email your request
to C<bug-CSS-SpriteMaker-Simple at rt.cpan.org>
=for html </div></div>
=head1 AUTHOR
=for html <div style="display: table; height: 91px; background: url(http://zoffix.com/CPAN/Dist-Zilla-Plugin-Pod-Spiffy/icons/section-author.png) no-repeat left; padding-left: 120px;" ><div style="display: table-cell; vertical-align: middle;">
=for html <span style="display: inline-block; text-align: center;"> <a href="http://metacpan.org/author/ZOFFIX"> <img src="http://www.gravatar.com/avatar/328e658ab6b08dfb5c106266a4a5d065?d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2F627d83ef9879f31bda...
=for html </div></div>
=head1 LICENSE
You can use and distribute this module under the same terms as Perl itself.
See the C<LICENSE> file included in this distribution for complete
details.
=cut
( run in 2.790 seconds using v1.01-cache-2.11-cpan-524268b4103 )