public function renderBlock(AbstractBlock $block, $inTightList = false)
{
$renderer = $this->environment->getBlockRendererForClass(get_class($block));
if (!$renderer) {
throw new \RuntimeException('Unable to find corresponding renderer for block type ' . get_class($block));
}
return $renderer->render($block, $this, $inTightList);
}