Display Template.

@param  string   $view  Template to use for rendering
@param  string   $data  Arguments to use

@return void
540188
public function template($template, $data = [])
    {
        $templatePath = self::$instance->app->findTemplate($template);
        echo self::$instance->renderTemplate($templatePath, $data);
    }
1367006
public function render($template = '', $data = []) {
		if (!isset($this->blocks[$template])) {
			$this->blocks[$template] = $this->blockFactory->create($template);
		}
		$block = $this->blocks[$template];
		$block->setData($data);
		return $block->render();
	}
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;
    }
80503
public function render($view, array $data = [], $conditions = [])
    {
        // view parts
        $file = strtok($view, '/');
        $section = strtok('/');

        // Get Body-Template
        $template = $this->getTemplate($file);

        // extend with default data
        $data += $this->data;

        // set tags
        foreach ($data as $name => $value) {
            $template->addText($name, $value);
        }
        foreach ($conditions as $name => $value) {
            $template->addCond($name, $value);
        }

        // Render Page
        return $template->get($section);
    }
939386
protected function stringViewInstance($view, $data)
    {
        return new StringView($this, $this->engines->resolve('stringblade'), $view, null, $data);
    }
585057
protected function setHtmlBody($view, array $data)
    {
        $this->message->builder()->setHtmlBody($this->renderView($view, $data));
    }
572719
public function render($view, array $data = [])
    {
        return $this->blade->share('errors', $this->session->pull('errors'))->render($view, $data);
    }
999111
public function loadView($view, $data = array(), $mergeData = array())
    {
        $this->view = View::make($view, $data, $mergeData);
        return parent::loadView($view, $data, $mergeData);
    }
901996
public function display($template, $data = NULL)
    {
        $app = App::getInstance();
        $data = $this->data->all();
        unset($data['flash']);
        unset($data['app']);
        foreach (array_keys($data) as $key) {
            if ($key[0] === '_') {
                unset($data[$key]);
            }
        }

        $app->response->headers['content-type'] = $this->contentType;
        echo \JsonKit\JsonKit::encode($data);
    }
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;
  }
542647
public static function render($template, $data = [])
    {
        // @var \Illuminate\View\Factory $factory
        $factory = self::instance()->view();

        // @var \Illuminate\Contracts\View\View $view
        $view = $factory->make($template, $data);

        return $view->render();
    }
605750
public function display(array $options, View $view): void
    {
        $this->validateOptions($options);

        $this->set('cakeView', $view);
        $this->set('isBatch', $this->batch);
        $this->set('isGroup', (bool)$this->getGroupByField());
        $this->set('isSystem', (bool)$this->entity->get('system'));
        $this->set('isExport', $this->getExport());
        $this->set('viewOptions', $this->getViewOptions());
        $this->set('tableOptions', [
            'id' => $this->getTableId(),
            'headers' => $this->getTableHeaders()
        ]);
        $this->set('dtOptions', $this->getDatatableOptions());
        $this->set('chartOptions', $this->getChartOptions());
    }
764597
public static function view(string $view, array $data = [])
  {
    $global = Self::$variables::get();
    $data = array_merge($global, $data);

    return Self::$view->view($view, $data);
  }
1160087
protected function render( $data ) {

		$template = Component::WP_Plugin_Rating()->getOption( 'path', 'template' );

		$this->view->renderizate( $template, 'component', $data );
	}
1081385
protected function render($template, $data = array())
    {
        $view        = null;
        $data        = array_merge_recursive($this->all(), $data);
        $data['app'] = $this->app;
        $template    = $this->resolve($template);


        if (! $template) {
            return;
        }

        if (! $this->layout) {
            $view = $this->make($template, $data);
        } else {
            $view = $this->layout->nest('content', $template, $data);
        }

        return $view;
    }
10723
public function render($template, $data = array()) {
		if(!is_null($this->layout) && $this->enabled === TRUE) { // Render the layout!!
			$this->setLayoutData('content', parent::render($template, array_merge($this->layoutData, (array)$data)));
			$this->setLayoutData('js', $this->jsAssets->render());
			$this->setLayoutData('css', $this->cssAssets->render());
			$this->setLayoutData('title', $this->titleParts->render());

			return parent::render($this->layout, $this->layoutData);
		} else {
			return parent::render($template, $data);
		}
	}
503769
public function render(ViewData $data): void
    {
        $modelData = $data->model()->data();
        $templatePath = $data->templatePath();

        if (!$modelData) {
            return;
        }

        $this
            ->twigLoad($templatePath)
            ->display($modelData);
    }