class Sass in Sassy 7
Sass class @package PHamlP @subpackage Yii
Hierarchy
- class \Sass
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Sass:: |
private | property | * | |
Sass:: |
public | function | * Parse a Sass file to CSS * | |
Sass:: |
public | function | * Constructor * |