Render the Markdown template into text.

@param  string  $view
@param  array  $data
@return \Illuminate\Support\HtmlString
553034
public function renderText($view, array $data = [])
    {
        $this->view->flushFinderCache();

        $contents = $this->view->replaceNamespace(
            'mail', $this->textComponentPaths()
        )->make($view, $data)->render();

        return new HtmlString(
            html_entity_decode(preg_replace("/[\r\n]{2,}/", "\n\n", $contents), ENT_QUOTES, 'UTF-8')
        );
    }
836315
public function render($view, $model=''){
    if ( empty($model) && $this->has_data() ){
			$model = $this->data;
		}
    if ( \is_string($view) ){
      return \is_array($model) ? bbn\tpl::render($view, $model) : $view;
		}
		die(bbn\x::hdump("Problem with the template", $view, $this->path, $this->mode));
	}
795009
public function render($view, $values = array())
    {
        // Setup the template path
        $folder = $this->app->config('templates.path');
        $view = $folder . $view . '.php';

        // Check if the template exists
        if (!file_exists($view)) {
            throw new \Exception('Template not found: ' . $view, 404);
        }

        // Extract values and include template
        extract($values);
        ob_start();
        include $view;
        $html = ob_get_contents();
        ob_end_clean();

        // Return rendered HTML
        return $html;
    }
136617
public static function render_each($view, array $data, $iterator, $empty = 'raw|')
	{
		$result = '';

		// If is actually data in the array, we will loop through the data and
		// append an instance of the partial view to the final result HTML,
		// passing in the iterated value of the data array.
		if (count($data) > 0)
		{
			foreach ($data as $key => $value)
			{
				$with = array('key' => $key, $iterator => $value);

				$result .= render($view, $with);
			}
		}

		// If there is no data in the array, we will render the contents of
		// the "empty" view. Alternatively, the "empty view" can be a raw
		// string that is prefixed with "raw|" for convenience.
		else
		{
			if (starts_with($empty, 'raw|'))
			{
				$result = substr($empty, 4);
			}
			else
			{
				$result = render($empty);
			}
		}

		return $result;
	}
1272830
public function render(string $view, array $templateVars = []): string
    {
        return $this->renderer->render($view, $templateVars);
    }
884100
public function render($view, $data = [], $mergeData = [])
    {
        if (isset($this->aliases[$view])) {
            $view = $this->aliases[$view];
        }

        $view = $this->normalizeName($view);

        return $this->factory->render($view, $data, $mergeData);
    }
511149
public function render(object $controller, String $view, array $data = null): string
    {
        $this->dot = new IteratorDot($data);

        $this->data[] = (null === $data) ? array() : $data;
        $this->view = $view;
        $remove_namespace = explode('\\', get_class($controller));
        $this->controllers = $remove_namespace[2];
        extract($this->data);
        ob_start();
        $this->isHeader();
        include $this->file = DIR_FILE.'Views/'.$this->controllers.DS.$this->view.$this->ex;
        $this->isFooter();
        if (null === $this->layout) {
            ob_end_flush();
        } else {
            ob_end_clean();
            $this->include_file($this->layout);
        }
        $content = ob_get_contents();

        return $content;
    }
409228
public function render($view, $data = [], $mergeData = [])
    {
        return $this->make($view, $this->parseData($data), $mergeData)->render();
    }
197752
protected function renderView($view, $data, $mergeData)
    {
        $data = $data ?: [];
        $mergeData = $mergeData ?: [];

        return function () use ($view, $data, $mergeData) {
            return $this->view->make($view, $data, $mergeData)->render();
        };
    }
703419
public function view($view, array $data = array())
    {
        $this->view = $view;

        $this->viewData = $data;

        return $this;
    }
572719
public function render($view, array $data = [])
    {
        return $this->blade->share('errors', $this->session->pull('errors'))->render($view, $data);
    }
626694
protected function renderSuccessPage(array $data, ?string $view = null) : View
    {
        return $this->view->make($view ?? 'state.success')->with($data);
    }
749360
public function render(string $template = "", array $data = []): string
    {
        try {
            if ($template) {
                $filename = dirname(__DIR__, 4)
                          . DIRECTORY_SEPARATOR
                          .  "layout"
                          . DIRECTORY_SEPARATOR
                          . str_replace("..", "", $template);
                if (!is_file($filename)) {
                    throw new Exception ($filename . " is not a file");
                }
                $this->__construct();
                extract($data);
                ob_start();
                include $filename;
                $this->obContents = ob_get_contents();
                ob_end_clean();
            }
            return $this->obContents ? $this->obContents : parent::render();
        } catch (Throwable $e) {
            throw new ViewException(
                "Can't render " . static::class . " " . $e->getMessage()
            );
        }
    }
1190254
public function render($data = [], $view = null)
    {
        $view = $view ? : MenuManager::PLUGIN_NAME . '::master_menu';

        return $this->manager->getView()->make($view, ['menu' => $this], $data)
            ->render();
    }
259011
public function make($view, $data = [])
    {
        try {
            return $this->view->make($view, $data)->render();
        } catch (\InvalidArgumentException $e) {
            throw new ViewNotFoundException("No file found at '{$view}'");
        }
    }
821616
protected function renderView(array $view)
    {
        foreach ($view as $key => $element) {
            if (empty($element['value'])) {
                $view[$key] = '';
                continue;
            }

            if (!empty($element['html'])) {
                $attributes = $this->renderAttributes($element['html_attributes']);
                $prefix = '<' . $element['html_tag'] . ' ' . $attributes . '>';
                $suffix = '</' . $element['html_tag'] . '>';
                $value = htmlspecialchars($element['value'], ENT_QUOTES, 'UTF-8');
                $view[$key] = $prefix . $value . $suffix;
            } else {
                $view[$key] = strip_tags($element['value']);
            }
        }

        return $view;
    }
667356
protected function render($template, $data = [])
    {
        $view = new View();
        $view->type(View::VIEW_TYPE_CELL);
        $view->set($data);
        $className = get_class($this);
        $namePrefix = '\View\Cell\\';
        $name = substr($className, strpos($className, $namePrefix) + strlen($namePrefix));
        $view->context(str_replace('\\', DIRECTORY_SEPARATOR, $name));
        return $view->render($template);
    }