css.pm 366 B

12345678910111213141516171819202122232425
  1. package Trog::Renderer::css;
  2. use 5.040;
  3. use re '/aa';
  4. use parent qw{Trog::Renderer::Base};
  5. use CSS::Minifier::XS;
  6. =head1 Trog::Renderer::css
  7. Render CSS, and minify the output.
  8. =cut
  9. sub render (%options) {
  10. $options{post_processor} = \&_minify;
  11. Trog::Renderer::Base::render(%options);
  12. }
  13. sub _minify {
  14. return CSS::Minifier::XS::minify(shift);
  15. }
  16. 1;