You are here

private static function SassExtentionsCompassConfig::setDefaults in Sassy 7

* Sets default values for paths not specified

1 call to SassExtentionsCompassConfig::setDefaults()
SassExtentionsCompassConfig::config in phamlp/sass/extensions/compass/config.php
* Sets configuration settings or returns a configuration setting. *

File

phamlp/sass/extensions/compass/config.php, line 55

Class

SassExtentionsCompassConfig
Compass extension configuration class. @package PHamlP @subpackage Sass.extensions.compass

Code

private static function setDefaults() {
  foreach (array(
    'css',
    'images',
    'fonts',
    'javascripts',
  ) as $asset) {
    if (empty(self::$config[$asset . '_path'])) {
      self::$config[$asset . '_path'] = self::$config['project_path'] . DIRECTORY_SEPARATOR . self::$config[$asset . '_dir'];
    }
    if (empty(self::$config['http_' . $asset . '_path'])) {
      self::$config['http_' . $asset . '_path'] = self::$config['http_path'] . self::$config[$asset . '_dir'];
    }
  }
}