A helper which automatically compiles LESS files to CSS.
Project description
About
LessCSS is a helper which automatically compiles LESS files to CSS when LESS files are modified. It works with Brubeck and web.py web frameworks. Although it’s not tested on other frameworks such as bottle, it should work without any problems.
Note: You need to install less before using this.
Installation
- ::
$ pip -U install lesscss
Usage
- ::
from lesscss.lesscss import LessCSS LessCSS(media_dir=’media’, exclude_dirs=[‘img’, ‘src’], based=True)
Parameters
media_dir: Directory where you put static/media files such as css/js/img.
exclude_dirs: Directories you don’t want to be searched. It’d be pointless to search for less files in an images directory. This parameter is expected to be a list.
based: If it’s set True then LessCSS will generate the style-(base60).css version as well (for example; style-dHCFD.css). This is useful if you set expire times of static files to a distant future since browsers will not retrieve those files unless the name is different or the cache has expired. This parameter is expected to be a boolean value.
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.