/**
 * Render pre-parsed template
 *
 * @return string rendered template
 *
 * @since   1.7.0
 */
protected function _renderTemplate()
{
    $replace = [];
    $with = [];
    foreach ($this->_template_tags as $jdoc => $args) {
        $replace[] = $jdoc;
        $with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
    }
    return str_replace($replace, $with, $this->_template);
}