You are here

class Sass in Sassy 7

Sass class @package PHamlP @subpackage Yii

Hierarchy

Expanded class hierarchy of Sass

File

phamlp/Yii/phamlp/Sass.php, line 24

View source
class Sass {

  /**
   * @var SassParser
   */
  private $sass;

  /**
   * Constructor
   * @param array Sass options
   * @return Sass
   */
  public function __construct($options) {
    $this->sass = new SassParser($options);
  }

  /**
   * Parse a Sass file to CSS
   * @param string path to file
   * @return string CSS
   */
  public function parse($file) {
    return $this->sass
      ->toCss($file);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Sass::$sass private property *
Sass::parse public function * Parse a Sass file to CSS *
Sass::__construct public function * Constructor *