/**
  * Only render a template
  *
  * @param  Collection $collection
  * @param  string     $templatePartial
  *
  * @return string
  */
 public function renderTemplate(Collection $collection, $templatePartial)
 {
     $escapeHtmlAttribHelper = $this->getEscapeHtmlAttrHelper();
     $elementOrFieldset = $collection->getTemplateElement();
     $partialHelper = $this->getPartialHelper();
     $replaceIndex = $collection->getTemplatePlaceholder();
     $templateMarkup = $partialHelper($templatePartial, ['collection' => $elementOrFieldset]);
     return sprintf($this->getTemplateWrapper(), $escapeHtmlAttribHelper($templateMarkup), $replaceIndex);
 }