NAME

Apache2::Filter::CSS::LESS - Apache2 LESS to CSS conversion filter

SYNOPSIS

  <LocationMatch "\.less$">
      PerlOutputFilterHandler   Apache2::Filter::CSS::LESS
      # optionally, set the output content type.
      # default content type is text/css
      # PerlSetVar LessContentType "text/plain"
  </LocationMatch>

DESCRIPTION

Apache2::Filter::CSS::LESS is a mod_perl2 output filter which converts CSS LESS files into CSS on demand using CSS::LESSp.

Caching

Conversion of LESS files to CSS requires considerably more CPU resources than simply serving up static CSS files. Therefore, it is recommended that you use some sort of cache in order to minimize the processing required to convert LESS files. An example to cache everything under /less using mod_cache:

 # cache root directory
 CacheRoot /path/to/disk/cache
 # turn on cache for "/less/" location
 CacheEnable disk /less/

see the mod_cache documentation for more details.

CONFIGURATION

The following PerlSetVar's are recognized:

LessContentType

Sets the output content type of the filtered CSS. The default content type is text/css.

SOURCE

You can contribute or fork this project via github:

http://github.com/mschout/apache2-filter-css-less

 git clone git://github.com/mschout/apache2-filter-css-less.git

BUGS

Please report any bugs or feature requests to bug-apache2-filter-css-less@rt.cpan.org, or through the web interface at http://rt.cpan.org/

AUTHOR

Michael Schout <mschout@cpan.org>

COPYRIGHT & LICENSE

Copyright 2009 Michael Schout.

This program is free software; you can redistribute it and/or modify it under the terms of either:

  • the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or

  • the Artistic License version 2.0.

SEE ALSO

CSS::LESSp, Apache2