Render the tag.

@param TagRendererInterface $renderer The template tag renderer
@param TagInterface         $tag      The template tag

@throws RequireTagException

@return string The rendered tag
324424
protected function renderTag(TagRendererInterface $renderer, TagInterface $tag)
    {
        $content = '';

        try {
            $content .= $renderer->render($tag);
        } catch (TagRendererExceptionInterface $e) {
            $tag = $e->getTag();

            throw new RequireTagException($e->getMessage(), $tag->getTemplateLine(), $tag->getTemplateName() ? new Source('', $tag->getTemplateName()) : null, $e->getPrevious());
        }

        return $content;
    }
412750
public function row($name, RendererInterface $renderer = null)
    {
        $renderer = $renderer ?: $this->getDefaultRenderer();

        return $this->getRow($name)->render($renderer);
    }
1027503
protected function isNonExistentOptionalTag(RequireTagInterface $tag)
    {
        if (!$this->manager->has($tag->getPath(), $tag->getType())) {
            if ($tag->isOptional()) {
                return true;
            }

            throw new RequireTagRendererException($tag, sprintf('The %s %s "%s" is not managed by the Webpack Require Asset Manager', $tag->getCategory(), $tag->getType(), $tag->getPath()));
        }

        return false;
    }
251230
public function render($renderer)
    {
        $renderer->clearPageHeader();
        foreach ($this->elements as $element) {
            $renderer->addPageHeader($element);
        }
    }
1148307
public function render(RenderInterface $render)
    {
        $this->render = $render;
        $this->render->setConfig($this->config);
        return $this->render->render();
    }
17630
public function render(Render $renderer)
	{
		$legend = '';

		//Make sure the legend is added if needed
		if ( !is_null($this->getLegend()) )
		{
			$legend = Html::tag('legend', [], $this->getLegend());
		}

		//Makes sure the legend is added if one exists
		$elements = $legend;

		//Render all the elements
		foreach ( $this->getContents() as $element )
		{
			$elements .= "\n" . $renderer->render($element);
		}

		return Html::tag('fieldset', $this->getAttributes(), $elements);
	}
1171100
protected function renderInstance(ElementInterface $element)
    {
        $value = $this->getElementValue($element);

        foreach ($this->classMap as $class => $pluginName) {
            if ($value instanceof $class) {
                return $this->renderHelper($pluginName, $value, $element);
            }
        }

        return;
    }
306044
public function render( RendererInterface $renderer )
    {
        return $renderer->translate(
            'default.' . ( $this->successful ? 'success' : 'failed' ),
            'default'
        ) . ( empty( $this->loginWith ) ? '' : ', ' . sprintf(
            $renderer->translate( 'user.action.loginWith.%s', 'user' ),
            $renderer->translate( 'user.loginWith.' . $this->loginWith, 'user' )
        ) );
    }
350182
public function render(ResultsRenderer $renderer)
    {
        return sprintf(
            "  %s\n%s\n\n  %s\n%s\n",
            $renderer->style('YOUR OUTPUT:', ['bold', 'yellow']),
            $this->indent($renderer->style(sprintf('"%s"', $this->result->getActualOutput()), 'red')),
            $renderer->style('EXPECTED OUTPUT:', ['bold', 'yellow']),
            $this->indent($renderer->style(sprintf('"%s"', $this->result->getExpectedOutput()), 'green'))
        );
    }
331262
public function render(?Formatter $formatter = null): string
    {
        if ($formatter === null) {
            $formatter = new PassthroughFormatter();
        }

        $tags = [];
        foreach ($this->tags as $tag) {
            $tags[] = '{' . $formatter->format($tag) . '}';
        }

        return vsprintf($this->bodyTemplate, $tags);
    }
969534
public function render(HTML_QuickForm2_Renderer $renderer)
    {
        $renderer->startGroup($this);
        foreach ($this as $element) {
            $element->render($renderer);
        }
        $renderer->finishGroup($this);
        return $renderer;
    }
1092737
protected function _setRenderer($renderer)
    {
        if ($renderer !== null && !($renderer instanceof RendererInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid renderer'),
                null,
                null,
                $renderer
            );
        }

        $this->renderer = $renderer;
    }
1287245
public function render(HTML_QuickForm2_Renderer $renderer)
    {
        foreach ($this->rules as $rule) {
            if ($rule[1] & HTML_QuickForm2_Rule::RUNAT_CLIENT) {
                $renderer->getJavascriptBuilder()->addRule($rule[0]);
            }
        }
        $renderer->startContainer($this);
        foreach ($this as $element) {
            $element->render($renderer);
        }
        $renderer->finishContainer($this);
        return $renderer;
    }
747512
public function render( ElementInterface $element )
    {
        if ( ! $element instanceof TagListElement )
        {
            throw new Exception\InvalidArgumentException( sprintf(
                '%s requires that the element is of type Grid\Tag\Form\Element\TagList',
                __METHOD__
            ) );
        }

        $rendered       = '';
        $type           = $this->getInputType();
        $name           = static::getName( $element );
        $closingBracket = $this->getInlineClosingBracket();

        $hidden = sprintf(
            '<input %s%s',
            $this->createAttributesString( array(
                'type'  => 'hidden',
                'name'  => $element->getName(),
                'value' => '',
            ) ),
            $closingBracket
        );

        foreach ( $element->getValue() as $value )
        {
            $rendered .= sprintf(
                '<input %s%s',
                $this->createAttributesString( array(
                    'type'  => $type,
                    'name'  => $name,
                    'value' => $value,
                ) ),
                $closingBracket
            );
        }

        $attributes = $element->getAttributes();

        if ( empty( $attributes['class'] ) )
        {
            $attributes['class'] = '';
        }
        else
        {
            $attributes['class'] .= ' ';
        }

        $attributes['class'] .= 'tag_list';
        $attributes['data-name'] = $name;
        unset( $attributes['type'] );
        unset( $attributes['name'] );
        unset( $attributes['value'] );

        return sprintf(
            '%s<div %s>%s</div>',
            $hidden,
            $this->createAttributesString( $attributes ),
            $rendered
        );
    }
1097600
public function render(RendererInterface $renderer = null)
    {
        if ($renderer) {
            return $renderer->render($this);
        }

        return '<td' . $this->attributes->render() . '>' . $this->content . '</td>';
    }
1178918
public function render($key, RendererInterface $renderer = null)
	{
		if (!$this->hasMenu($key)) {
			return '';
		}

		return $this->renderMenu($this->getMenu($key), $renderer);
	}
28785
protected function _renderTag($attribs = array(), $content = null)
    {
        if($this->getTemplate()->decorator() == 'joomla')
        {
            if($this->getConfig()->escape) {
                $content = $this->getTemplate()->escape($content);
            }

            JFactory::getDocument()->setTitle($content);
        }
        else return parent::_renderTag($attribs, $content);
    }