public function render($data, $type = null)
    {
        if (empty($type) or $type === 'html') {
            return Response::Create($this->renderInclude($data));
        } elseif ($type === 'jsonp') {
            return $this->renderJSONP($data);
        } else {
            return $this->renderJSON($data);
        }
    }
public function render($data, $type = null)
    {
        if (empty($type) or $type === 'html') {
            return Response::Create($this->renderInclude($data));
        } elseif ($type === 'jsonp') {
            return $this->renderJSONP($data);
        } else {
            return $this->renderJSON($data);
        }
    }
public function render ( $ data , $ type = null ) { if ( empty ( $ type ) or $ type === 'html' ) { return Response :: Create ( $ this -> renderInclude ( $ data ) ) ; } elseif ( $ type === 'jsonp' ) { return $ this -> renderJSONP ( $ data ) ; } else { return $ this -> renderJSON ( $ data ) ; } }
Generates the output of the templates with parsing all the template variables.

@param string|array $data
@param string       $type

@return mixed
Generates the output of the templates with parsing all the template variables .