2017 © Pedro Peláez
 

library scss-cache

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

image

clue/scss-cache

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

  • Monday, November 5, 2012
  • by clue
  • Repository
  • 0 Watchers
  • 0 Stars
  • 12 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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"
    }
}

The Versions

05/11 2012

dev-master

9999999-dev https://github.com/clue/scss-cache

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

  Sources   Download

MIT

The Requires