对 view() 的封装.

@param $view
@param array $data
@param array $mergeData

@return mixed
18080
public function view($view, $data = [], $mergeData = [])
    {
        return $this->response(View::make($view, $data, $mergeData));
    }
35093
protected function view($view, $data = null, $module = null)
    {
        if ($data === null || !is_array($data)) {
            $data = $this->dis;
        }
        if ($module === null) {
            if (property_exists($this, 'module') && $this->module) {
                return view($this->module . '::' . $view, $data);
            }
        }
        return view($view, $data);
    }
428285
public function view($view, $data = array(), $mergeData = array())
    {
        return $this->views->make($this->getThemeNamespace($view), $data, $mergeData);
    }
1230387
public function render($view, $data = array())
    {
        $data = apply_filters('Municipio/blade/data', $data);

        $blade = new Blade($this->viewPaths, $this->cachePath);
        echo $blade->view()->make($view, $data)->render();
    }
637024
public function addView($view, $data = null)
    {
        if(!is_object($view))
            $view = new \erdiko\core\View($view, $data);
        if($data != null)
            $view->setData($data);
        
        $this->appendContent($view->toHtml());
    }
1318012
public static function file(string $path, array $data = [], array $mergeData = []): ViewInterface
    {
        return static::getInstance()->file($path, $data, $mergeData);
    }
741226
protected function view($view, $data = [], $auto_filter = null)
	{
		return $this->theme->view($view, $data, $auto_filter);
	}
904082
public function file($path, $data = [], $mergeData = [])
    {
        $data = array_merge($mergeData, $this->parseData($data));

        return tap($this->viewInstance($path, $path, $data), function ($view) {
            $this->callCreator($view);
        });
    }
1171888
public function loadView($view, $data = array(), $mergeData = array())
    {
	$view = View::make($view, $data, $mergeData);

	return $this->loadHTML($view);
    }
28473
public function make($view, array $data = [])
    {
        $location = $this->finder->find($view);

        if ( ! $location) {
            throw new \Exception(sprintf('View `%s` cannot be found!', $view));
        }

        return new View($location, $view, $data);
    }
1012309
public function renderFirst(array $data = [], string $path = 'gridView', array $mergeData = []): string
    {
        $path = $path === 'gridView' ? 'part.tableTrItem' : $path;

        $headers = $data['data']->headers;
        $item = (array)$data['data']->data;

        return static::view($path, [
            'headers' => $headers,
            'item'    => $item,
        ], $mergeData)->render();
    }
86346
protected function view($view, $data = [], $auto_filter = null)
	{
		return \View::forge($view, $data, $auto_filter);
	}
824153
public function create($view, $data = [])
    {
        $filename = $this->getFinder()->find($view);

        $mergeMethod = ($data instanceof Data) ? 'addAll' : 'merge';

        $this->getData()->$mergeMethod($data);

        return new View($filename, $this->getData(), new Context($this));
    }
559001
public function markdown($view, array $data = [])
    {
        $this->markdown = $view;
        $this->viewData = $data;

        $this->view = null;

        return $this;
    }
34829
protected function convertToViewable($view, array $data, array $config)
    {
        if (! $view instanceof View) {
            $view = $this->view->make($view);
        }

        return $view->with($data);
    }
1360736
protected function setContent($view, $data = array(), $mergeData = array())
	{
		if ( ! is_null($view))
		{
			if (is_string($view))
			{
				$this->layout->content = View::make($view, $data, $mergeData);
			}
			else {
				$this->layout->content = $view;
			}
		}
	}
306878
public function renderWhen($condition, $view, $data = [], $mergeData = [])
    {
        if (! $condition) {
            return '';
        }

        return $this->make($view, $this->parseData($data), $mergeData)->render();
    }