Renders a string using the template. We are using loadString as opposed to loadTempalte
or loadFile in order to avoid changing the state of the template.

@param string $ui
@param array  $data

@return string
190271
protected function _render($ui, $data = array())
    {
        $data['helper'] = $this;
        $file = '_ui_'.$ui.'.php';
        $data = AnConfig::unbox($data);

        return (string) $this->_template->loadTemplate('_ui_'.$ui, $data);
    }
553714
public function render(array $data = array())
    {
        parent::render();

        if(!$this->_twig_template instanceof Twig_Template) {
            throw new RuntimeException(sprintf('The template cannot be rendered'));
        }

        //Render the template
        $content = $this->_twig_template->render($data);

        //Remove the template from the stack
        array_pop($this->_stack);

        return $content;
    }
77634
public function render($view, array $data = null)
    {
        if (!headers_sent()) {
            foreach ($this->_headers as $header) {
                header($header, true);
            }
        }

        if ($data) {

            if (!empty($this->vars)) {
                // Overlay data config
                $this->vars = array_replace($this->vars, $data);
            } else {
                $this->vars = $data;
            }

        }

        $this->view = $view;
        $path = '../App/' . $this->templatesDir . $this->template . '.phtml';

        if (file_exists($path)) {
            require $path;
        } else {
            die('No template file ' . $this->template . ' present in template directory.');
        }

        return true;
    }
926330
public static function render($view, array $data = array())
    {
        if (self::$force || App::state() > 2) {
            \UtilsSandboxLoader('application/View/' . strtr($view, '.', '/') . '.php', self::$shared + $data);

            return $data = null;
        }

        return array_push(self::$views, array(strtr($view, '.', '/'), $data)) - 1;
    }
391860
public function render(array $data, ContextInterface $context)
    {
        $data = optionsParser($data, [
            'name' => '',
            'val' => null,
            'type' => 'text',
            'escape' => true,
            'templateVars' => [],
        ]);
        $data->add('value', $data->consume('val'));

        return $this->_templates->format('hidden', [
            'name' => $data->get('name'),
            'type' => $data->get('type'),
            'templateVars' => $data->get('templateVars'),
            'attrs' => $this->_templates->formatAttributes($data->toArray(), ['name', 'type']),
        ]);
    }
1048152
protected function _render(string $viewFile, array $data = []): string
    {
        if (empty($data)) {
            $data = $this->viewVars;
        }

        if (substr($viewFile, -3) === 'php') {
            $out = parent::_render($viewFile, $data);
        } else {
            $data = array_merge(
                $data,
                iterator_to_array($this->helpers()->getIterator()),
                [
                    '_view' => $this,
                ]
            );

            try {
                $out = $this->getTwig()->loadTemplate($viewFile)->render($data);
            } catch (Exception $e) {
                $previous = $e->getPrevious();

                if ($previous !== null && $previous instanceof Exception) {
                    throw $previous;
                } else {
                    throw $e;
                }
            }
        }

        return $out;
    }
948594
public function render($content, $data = [])
    {
        if (!$content) {
            return '';
        }

        $html = $this->renderTwig($content, $data);

        $html = Markdown::parseSafe($html);

        return $html;
    }
284283
public static function render($template = '', $data = [])
    {
        $templatesPath = realpath(__DIR__ . '/../templates');
        $loader        = new \Twig_Loader_Filesystem($templatesPath);
        /** @var object $twig */
        $twig         = new \Twig_Environment($loader);
        $templateFile = $template . '.html';

        return $twig->render($templateFile, $data);
    }
780142
public function renderText($content, $data = [])
    {
        if (!$content) {
            return '';
        }

        $text = $this->renderTwig($content, $data);

        $text = html_entity_decode(preg_replace("/[\r\n]{2,}/", "\n\n", $text), ENT_QUOTES, 'UTF-8');

        return $text;
    }
168647
public function render($template, array $data = [])
    {
        if (is_null($this->loader)) {
            return $this->renderString($template, $data);
        }

        if (! $this->loader->exists($template)) {
            $this->loader->failLoading($template .' not found');
        }

        $this->pushSharedData($data);

        $__tintin = $this;

        extract($this->getSharedData());

        /**
         * Load template when is not a cached file
         */
        if (! $this->loader->isExpirated($template)) {
            $this->obFlushAndStar();

            require $this->loader->getCacheFileResolvedPath($template);
            
            return $this->obGetContent();
        }

        /**
         * Put the template into cache
         */
        $content = $this->loader->getFileContent($template);

        $this->loader->cache(
            $template,
            $this->compiler->compile($content)
        );

        $this->obFlushAndStar();

        require $this->loader->getCacheFileResolvedPath($template);

        return $this->obGetContent();
    }
1174235
public function render($file, $data = array(), $merge = true, $default = '')
    {
        settype($data, 'array');
        $templates = $this->getTemplateFiles($file);

        if ($merge) {
            $data = array_merge($data, $this->getDefaultData());
        }

        $rendered = null;
        $this->hook->attach('template.render', $templates, $data, $rendered, $this);

        if (isset($rendered)) {
            return trim($rendered);
        }

        list($original, $overridden) = $templates;

        if (is_file("$overridden.php")) {
            $template = "$overridden.php";
        } else if (is_file("$original.php")) {
            $template = "$original.php";
        } else {
            return $default;
        }

        $rendered = $this->renderPhpTemplate($template, $data);
        return trim($rendered);
    }
479919
public function render(array $data = null) : string
    {
        if (null !== $data) {
            $this->bind($data);
        }
        return $this->twig->render($this->data);
    }
437935
public function render(array $data = array())
    {
        //Set the data
        $this->_data = $data;

        //Evaluate the template
        $content = $this->_evaluate();

        if ($content === false) {
            throw new RuntimeException(sprintf('The template "%s" cannot be evaluated.', $this->_source));
        }

        //Remove the template from the stack
        array_pop($this->_stack);

        return $content;
    }
1220943
public function render($template, $data){
		$rtn = $this->twig->render($template, $data);
		return $rtn;
	}
690626
public function render(string $data, string $file = null){
		return $this->initOutputInterface($data)->dump($file);
	}
817390
private function html($data)
    {
        if (!is_array($data)) {
            return $data;
        }
        $return = '';
        foreach ($data as $key => $value) {
            $return .= '<li>' . $key . ': ' . (is_array($value) ? $this->html($value) : $value) . '</li>';
        }
        return '<ul>' . $return . '</ul>';
    }
584179
public function render($data)
    {
        $in_data = array ('items' => $data);
        return $this->_twig->render($this->_template, $in_data);
    }