资 源 简 介
About
This application allows for an enhanced super-set of CSS, based somewhat on SASS.
At the moment, the features are:
Variables - variables can be used to define CSS rules.
Nesting - nested selectors will output correct long-hand CSS
Compression - remove unnecessary white-space.
Future additions:
Mixins
Selector extensions
Caching
Requires
Python 2.0+
Apache + mod Rewrite
Setup
Place python script in cgi-bin folder.
########## Begin PyCSS#Action process-css /cgi-bin/pycss.pyAddHandler process-css .css
Basically, this tells this apache site that for any calls to a file ending in css, run the pycss.py script instead. The script picks up the path to the file from the env-variables and then does magic with it.
Usage
Variables
$a_colour:#452312;body { background:$a_colour;}p { background:#fff; color:$a_colour;}
Nestin