protected function injectVariables($args)
    {
        $this->pushEnv();
        $parser = new lessc_parser($this, __METHOD__);
        foreach ($args as $name => $strValue) {
            if ($name{0} != '@') {
                $name = '@'.$name;
            }
            $parser->count = 0;
            $parser->buffer = (string) $strValue;
            if (!$parser->propertyValue($value)) {
                throw new Exception("failed to parse passed in variable $name: $strValue");
            }

            $this->set($name, $value);
        }
    }
protected function injectVariables($args)
    {
        $this->pushEnv();
        $parser = new lessc_parser($this, __METHOD__);
        foreach ($args as $name => $strValue) {
            if ($name{0} != '@') {
                $name = '@'.$name;
            }
            $parser->count = 0;
            $parser->buffer = (string) $strValue;
            if (!$parser->propertyValue($value)) {
                throw new Exception("failed to parse passed in variable $name: $strValue");
            }

            $this->set($name, $value);
        }
    }
protected function injectVariables ( $ args ) { $ this -> pushEnv ( ) ; $ parser = new lessc_parser ( $ this , __METHOD__ ) ; foreach ( $ args as $ name => $ strValue ) { if ( $ name { 0 } != '@' ) { $ name = '@' . $ name ; } $ parser -> count = 0 ; $ parser -> buffer = ( string ) $ strValue ; if ( ! $ parser -> propertyValue ( $ value ) ) { throw new Exception ( "failed to parse passed in variable $name: $strValue" ) ; } $ this -> set ( $ name , $ value ) ; } }
inject array of unparsed strings into environment as variables
inject array of unparsed strings into environment as variables