public static function SassScriptFunctions::append in Sassy 7.3
1 call to SassScriptFunctions::append()
- SassScriptFunctions::join in phpsass/
script/ SassScriptFunctions.php
File
- phpsass/
script/ SassScriptFunctions.php, line 744
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function append($list, $val, $sep = ',') {
$string = is_object($sep) ? $sep->value : $sep;
$aliases = array(
'comma' => ',',
'space' => ' ',
'tab' => "\t",
);
if (isset($aliases[$string])) {
$string = $aliases[$string];
}
$list->value = trim($list->value . $string . $val->value, $string);
return $list;
}