public function variable($var, $default = '', $filter = null)
    {
        return $this->autoescape
            ? $this->escape($var, $default, $filter)
            : $this->raw($var, $default, $filter);
    }
public function variable($var, $default = '', $filter = null)
    {
        return $this->autoescape
            ? $this->escape($var, $default, $filter)
            : $this->raw($var, $default, $filter);
    }
public function variable ( $ var , $ default = '' , $ filter = null ) { return $ this -> autoescape ? $ this -> escape ( $ var , $ default , $ filter ) : $ this -> raw ( $ var , $ default , $ filter ) ; }
Return a value from template context, optionally set a default and filter.
If autoescape is set to true strings are escaped for html entities

@param  string       $var     Variable name
@param  mixed        $default Default
@param  string|array $filter  Array or pipe-separated list of filters
@return mixed
Return a value from template context optionally set a default and filter . If autoescape is set to true strings are escaped for html entities