scss-cache
Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change, (*1)
Quickstart examples
Once installed (see Install), you can serve your SCSS source like this:, (*2)
<?php
require_once 'vendor/autoload.php';
$scss = '$color: #fff;
body{
background: darken($color,10%);
color: invert($color);
}';
$cache = new scss_cache($scss);
$cache->serve();
If instead you want to serve your resulting CSS from SCSS files, use:, (*3)
$cache = scss_cache::file('source.scss');
$cache->serve();
Or if you want to get your resulting CSS for further processing:, (*4)
$scss = '...';
$cache = new scss_cache($scss);
$css = $cache->getOutput();
Install
The recommended way to install this library is through composer. New to composer?, (*5)
{
"require": {
"clue/scss-cache": "dev-master"
}
}