@param string $view

@return string
12275
protected function minify(string $view): string
    {
        $html = $this->compile($view);

        if ($this->minify)
        {
            $html = \Minify_HTML::minify(\trim($html), [
                'cssMinifier' => [\Minify_CSSmin::class, 'minify'],
                'jsMinifier'  => [JSMin::class, 'minify'],
            ]);
        }

        if (!empty($this->extends))
        {
            $html = (new HTML($html, $this->extends))
                ->apply();
        }

        return $html;
    }
888841
public function path(string $view): string
    {
        if (!$this->fileSystem()->has($view))
        {
            $this->fileSystem()->set($view, $this->minify($view));
        }

        return $this->fileSystem()->get($view);
    }
915890
public function getView($view)
    {
        if (Template::exists('Form/' . $view)) {
            return Template::getAdminTemplate('Form/' . $view);
        }

        return new View($view, B8_PATH . 'Form/View/');
    }
843535
public function render($view = null)
    {
        $this->findActivePage();
        $this->filterByAccessRights();
        $this->filterEmptyPages();

        $this->sort();

        if (is_null($view)) {
            $view = config('navigation.view.navigation', 'navigation::navigation');
        }

        return view($view, $this->toArray())->render();
    }
556117
public function filterTemplateInclude( $view ) {
		/** @var $wp_query \WP_Query */
		global $wp_query;

		$response = $this->handle( $this->request, [$view] );

		if ( $response instanceof ResponseInterface ) {
			if ( $response->getStatusCode() === 404 ) {
				$wp_query->set_404();
			}

			return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
		}

		return $view;
	}
443779
protected function showIndex($view = '')
    {
        $items = $this->getTableRows();
        $ajax = count($items) > 150 ? 'true' : 'false';

        return $this->view($view, compact('ajax'))->with('items', $ajax == 'true' ? [] : $items);
    }
1090638
public function render($view)
    {
        extract($this->attributes);

        ob_start();
        require $view;

        return $this->minify === true
            ? $this->min(ob_get_clean())
            : ob_get_clean();
    }
937943
protected function logView($view)
    {
        $name = $view->getName();
        $data = $this->limitCollection(Arr::except($view->getData(), ['__env', 'app']));
        $path = static::editorLink($view->getPath());
        preg_match('/href=\"(.+)\"/', $path, $m);
        $path = (count($m) > 1) ? '(<a href="'.$m[1].'">source</a>)' : '';
        $this->views[] = compact('name', 'data', 'path');
    }
417134
private function getResponse(View $view)
    {
        return $this->templateEngine->renderResponse($this->template, $view->getParams());
    }
764597
public static function view(string $view, array $data = [])
  {
    $global = Self::$variables::get();
    $data = array_merge($global, $data);

    return Self::$view->view($view, $data);
  }
1214466
public function edit(View $view)
    {
        $handler = $this->get('metadata')->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->edit($this, $view);
        }

        return '';
    }
215657
private function data($view) {


		$data['var'] = $this->module->get('var');

		if(isset($view['with']) ) {

			foreach((array) $view['with'] as $name => $value) {

				$data['var'][$name] = $value;
			}
		}

		$data['file'] = $this->getPath($view, $this->module->get('module'));


		return $data;
	}
72882
public function render($view): string
    {
        if (!($view instanceof IView)) {
            return $view;
        }

        $path = $this->resolveViewName($view->viewName());

        if ($path === null) {
            return '';
        }

        $engine = $this->resolver->resolve($path);

        return $engine->build($path, $view->viewVariables());
    }
582598
protected function resolveFromThemeFilepath( $view ) {
		$file = locate_template( $view, false );

		if ( ! $file ) {
			// Try adding a .php extension.
			$file = locate_template( $view . '.php', false );
		}

		return $file;
	}
581448
public function getSubstituteForView(View $view)
    {
        foreach ($this->getContextualSubstitutes() as $substitute) {
            if ($substitute->getView() === $view) {
                return $substitute;
            }

            while ($template = $view->getTemplate()) {
                if ($substitute->getView() === $template) {
                    return $substitute;
                }
            }
        }
    }
151503
public function render($view = null)
    {
        if (is_null($view)) {
            $view = config('navigation.view.page', 'navigation::page');
        }

        $data = $this->toArray();
        $data['pages'] = $this->getPages();

        return view($view, $data)->render();
    }
1311646
public function view($view = null)
    {
        if (null === $view) {
            return $this->view;
        }

        $this->view = $view;

        return $this;
    }