Get view from current theme.

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

@return mixed
428285
public function view($view, $data = array(), $mergeData = array())
    {
        return $this->views->make($this->getThemeNamespace($view), $data, $mergeData);
    }
317899
public static function make(string $view, array $params = [], array $mergeData = []): ViewInterface
    {
        return static::getInstance()->make($view, $params, $mergeData);
    }
1137141
public static function get($view, $data = array()){

        if( $data ){
            self::$level = self::$level + 1;
            self::$data[ self::$level ] = (array) $data;
        }

        $file = SRC. "{$view}.php";

        // Parse view
        ob_start();

            self::process($file);

            if( $data ){

                unset(self::$data[ self::$level ]);
                self::$level = self::$level - 1;
                self::process(NULL);

            }

            $view = ob_get_contents();

        ob_end_clean();

        return $view;
    }
504173
public function get( $view, $params = array() )
	{
		$template = preg_replace( '/\./', '/', $view );

		$theme_path =  get_template_directory() . '/views/' . $template . '.php';

		$plugin_path = $this->views_path . $template . '.php';

		$path = is_readable( $theme_path )
			? $theme_path
			: ( is_readable( $plugin_path )
				? $plugin_path
				: null
			);

		if ( ! empty( $path ) ) {
			extract( $params );
			ob_start();
			include( $path );
			return ob_get_clean();
		} else {
			return;
		}
	}
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));
    }
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;
			}
		}
	}
711892
public function view(string $view, array $data = [])
  {
    $path = $this->viewsDirectory . $this->DS . $this->cleanPath($view) . $this->viewsExtension;
    $this->verify($path);
    $this->registerDirectives();

    $compiler = new Compiler($this->cacheDirectory, $this->viewsDirectory, $this->viewsExtension, $this->directives, $this->engine);
    $compiler->makeView($path, $data);
    return $this;
  }
492402
public function loadViews($viewNames = array(), $data = array(), $mergeData = array())
    {
        $this->children = array();
        foreach ($viewNames as $key => $viewName) {
            $className = get_class();
            $item = new $className($this->cmd, $this->folder);
            $item->loadView($viewName, $data, $mergeData);
            $this->children[] = $item;
        }

        return $this;
    }
1318012
public static function file(string $path, array $data = [], array $mergeData = []): ViewInterface
    {
        return static::getInstance()->file($path, $data, $mergeData);
    }
446876
public function file($path, $data = [], $mergeData = [])
    {
        $data = array_merge($mergeData, $this->parseData($data));

        return $this->viewInstance($path, $path, $data);
    }
317932
protected function view($view, $data = [], $mergeData = [])
    {
        $theme = config('log-viewer.theme');

        return view()->make("log-viewer::{$theme}.{$view}", $data, $mergeData);
    }
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());
    }
433847
public function make($view, $data = array(), $mergeData = array())
    {
        if (isset($this->aliases[$view])) $view = $this->aliases[$view];

        $path = $this->finder->find($view);

        if (is_null($path) || ! is_readable($path)) {
            throw new BadMethodCallException("File path [$path] does not exist");
        }

        $data = array_except(
            array_merge($mergeData, $this->parseData($data)), array('__data', '__path')
        );

        $this->callCreator(
            $view = new View($this, $this->getEngineFromPath($path), $view, $path, $data)
        );

        return $view;
    }
626694
protected function renderSuccessPage(array $data, ?string $view = null) : View
    {
        return $this->view->make($view ?? 'state.success')->with($data);
    }
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);
    }
846172
public function render(string $view, array $data = []): string
    {
        return $this->native()->render(
            $this->path($view),
            $data
        );
    }
184257
public function string($contents, $unique, $timestamp, $data = [], $mergeData = []) {
        $data = array_merge($mergeData, $this->parseData($data));

        $this->callCreator($view = new StringView($this, $this->engines->resolve('blade.string'), $contents, $unique, $timestamp, $data));

        return $view;
    }