Renders a layout partial
@param string $partial The view to load.
@param array $params Parameter variables to pass to the view.
@return string The layout partial contents
357116
public function makeLayoutPartial($partial, $params = [])
    {
        if (!File::isLocalPath($partial) && !File::isPathSymbol($partial)) {
            $folder = strpos($partial, '/') !== false ? dirname($partial) . '/' : '';
            $partial = $folder . '_' . strtolower(basename($partial));
        }

        return $this->makeLayout($partial, $params);
    }
1306383
final public function partial(View $view) : string
    {
        if ($this->injector) {
            $this->injector->inject($view);
        }

        return $view->render();
    }
277235
public function render($template, array $params = [])
    {
        return $this->write($this->app->getView()->render($template, $params));
    }
930326
public function partial( $args = null ) {
		if ( is_null( $args ) ) {
			return $this->partial;
		} elseif ( is_array( $args ) ) {
			$this->partial = new Partial( $this->get_id(), $args );
		}
	}
1083842
public function partial( $partial, $child = '', $context = [] ) {
		if ( is_array( $child ) ) {
			// Optional argument $child not specified, flip input around.
			$context = $child;
			$child = '';
		}

		$templates = [];

		if ( $child ) {
			$templates[] = "partials/${partial}-${child}.php";
		}

		$templates[] = "partials/${partial}.php";

		app_render( $templates, $context );
	}
814899
public function partial($partial)
    {
        if ($this->partialExists($partial)) return $this->_partials[$partial];

        throw new PartialNotFoundException($partial . ' partial does not exist');
    }
400999
public static function get_path_to_partial($partial): string
    {
        $partial = \str_replace(
            ['.php', '.'],
            ['', '/'],
            $partial
        );

        $path = \trailingslashit(Config::get('theme.templates_directory')) . 'partials/' . $partial . '.php';

        return $path;
    }
138153
protected function render($template, array $parameters)
    {
        $twig = $this->getTwig();
        $parameters['compile_options'] = $this->compileOptions;
        return $twig->render($template, $parameters);
    }
1108770
protected function render($viewName, $params = [])
    {
        $e = new ViewRenderEvent();
        $this->trigger(self::EVENT_BEFORE_RENDER, $e);
        $result = (string)$e->content;

        $result .= $this->controller->getView()->render($viewName, $params, $this->controller);


        //$result .= $this->controller->render($viewName);

        $e = new ViewRenderEvent();
        $this->trigger(self::EVENT_AFTER_RENDER, $e);
        $result .= (string)$e->content;

        return $this->controller->renderContent($result);
    }
738857
public function partial($template, $data = array()) {
		return parent::render($template, array_merge($this->layoutData, (array)$data));
	}
487619
public function renderPartial($view)
    {
        $lay = $this->layout;
        $wi = $this->view;

        $this->layout = null;
        $this->view = $view;
        $output = $this->render();
        $this->layout = $lay;
        $this->view = $wi;

        return $output;
    }
491848
public function renderStringTemplate(string $string, array $parameters = []): string
    {
        try {
            $parameters = iterator_to_array($this->getTemplateVariables($parameters));

            $environment = new Environment(new ArrayLoader());
            $template = $environment->createTemplate($string);

            return $environment->resolveTemplate($template)->render($parameters);
        } catch (Throwable $t) {
            return '';
        }
    }
460467
public function render($name = null, ...$params)
    {
        return new HtmlString(
            view($this->getView(), [
                'breadcrumbs' => $this->generate($name, $params)
            ])->render()
        );
    }
382017
public function render(string $name, $params = []) : string
    {
        $params = $this->normalizeParams($params);
        return $this->template->make($name, $params)->render();
    }
970119
protected function render(string $template, array $parameters): string
    {
        $twig = new Environment(
            new FilesystemLoader([$this->skeletonDir]),
            [
                'debug' => true,
                'cache' => false,
                'strict_variables' => true,
                'autoescape' => false,
            ]
        );

        return $twig->render($template, $parameters);
    }
471153
public function partial($template, $vars=array())
	{
		return $this->_renderTemplate($template,
			array_merge($this->_vars, $vars));
	}
644171
public function render(array $params = []) {
        return trim(String::insert($this->getStatement(), $params + $this->getParams(), ['escape' => false])) . ';';
    }