protected function doRender(RequireTagInterface $tag, $assetName)
    {
        $type = $tag->getType();
        $output = '';

        if ($this->canBeRendered($assetName, $type)) {
            $attributes = $this->prepareAttributes($tag, $assetName);
            $this->assetRendered($assetName, $type);

            $output = RequireUtil::renderHtmlTag($attributes, $tag->getHtmlTag(), $tag->shortEndTag());
        }

        return $output;
    }
protected function doRender(RequireTagInterface $tag, $assetName)
    {
        $type = $tag->getType();
        $output = '';

        if ($this->canBeRendered($assetName, $type)) {
            $attributes = $this->prepareAttributes($tag, $assetName);
            $this->assetRendered($assetName, $type);

            $output = RequireUtil::renderHtmlTag($attributes, $tag->getHtmlTag(), $tag->shortEndTag());
        }

        return $output;
    }
protected function doRender ( RequireTagInterface $ tag , $ assetName ) { $ type = $ tag -> getType ( ) ; $ output = '' ; if ( $ this -> canBeRendered ( $ assetName , $ type ) ) { $ attributes = $ this -> prepareAttributes ( $ tag , $ assetName ) ; $ this -> assetRendered ( $ assetName , $ type ) ; $ output = RequireUtil :: renderHtmlTag ( $ attributes , $ tag -> getHtmlTag ( ) , $ tag -> shortEndTag ( ) ) ; } return $ output ; }
Do render the HTML tag.

@param RequireTagInterface $tag       The require template tag
@param string              $assetName The asset name

@return string The output render
Do render the HTML tag .