public function raw($var, $default = '', $filter = null)
    {
        $data = $this->get($var);
        if (is_null($data['data'])) {
            $data['data'] = $this->returnDefault($default);
        }
        if (is_string($filter)) {
            $filter = explode('|', $filter);
        }
        $filters = array_merge($data['filters'], (array) $filter);
        if (empty($filters)) {
            return $data['data'];
        }

        return $this->template()->filter($filters, $data['data']);
    }
public function raw($var, $default = '', $filter = null)
    {
        $data = $this->get($var);
        if (is_null($data['data'])) {
            $data['data'] = $this->returnDefault($default);
        }
        if (is_string($filter)) {
            $filter = explode('|', $filter);
        }
        $filters = array_merge($data['filters'], (array) $filter);
        if (empty($filters)) {
            return $data['data'];
        }

        return $this->template()->filter($filters, $data['data']);
    }
public function raw ( $ var , $ default = '' , $ filter = null ) { $ data = $ this -> get ( $ var ) ; if ( is_null ( $ data [ 'data' ] ) ) { $ data [ 'data' ] = $ this -> returnDefault ( $ default ) ; } if ( is_string ( $ filter ) ) { $ filter = explode ( '|' , $ filter ) ; } $ filters = array_merge ( $ data [ 'filters' ] , ( array ) $ filter ) ; if ( empty ( $ filters ) ) { return $ data [ 'data' ] ; } return $ this -> template ( ) -> filter ( $ filters , $ data [ 'data' ] ) ; }
Return a value from template context, optionally set a default and filter.

@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 .