This extension allows you to use SASS css templates in Yii.
###Resources
###Requirements
- Yii 1.0 or above
###Installation
- Extract the release file under
protected/extensions
. - Download and extract all PhpSass files from under
vendor/richthegeek/phpsass/
. - Add the following to your config file 'components' section:
<?php
'sass' => array(
'class' => 'ext.Sass',
// All parameters below are optional, change them to your needs
'cache' => false,
'debug' => false,
'extensions' => array(
'Compass' //not included by default
),
'functions' => array(
'alias' => callable
),
'includePaths' => array(
'path.to.search.your.sass.files'
),
'syntax' => 'scss',
),
###Usage
- See Sass syntax.
###Usage example To compile and connect result css file use sass component:
<?php
Yii::app()->sass->registerFile($file, $media, $force = false)