title: Compile css with Ruby Sass, via php
body: <p>I'm currently using <a href="https://github.com/richthegeek/phpsass" rel="nofollow">https://github.com/richthegeek/phpsass</a></p>
  
  <p>With every page load, I am doing the following:</p>
  
  <ol>
  <li>get list of scss files</li>
  <li>check if any of them are newer than the last time, if so:</li>
  <li>make an @import list and <code>file_put_contents($importlist)</code> </li>
  <li>instantiate PhpSass, give it the $importlist path: <code>$css = $sass-&gt;toCss(pathtoImporterSass);</code></li>
  <li>write the css file:  <code>file_put_contents($pathtocachefile, $css);</code></li>
  <li>and then, serve the css.</li>
  </ol>
  
  <p>So, I am wondering how to do step 4 via Ruby, instead of phpSass.  PhpSass is working ok, but it has some limitations (doesnt understand all of sass functions, strips <code>!important</code>, etc )</p>