src/CompiledTemplate.php
public function renderBlock(OutputBuffer $out, $name)
	{
		$method = 'block_' . $name;
		
		if(method_exists($this, $method))
		{
			$this->$method($out);
		}
		elseif($this->getParent() !== NULL)
		{
			$this->parent->renderBlock($out, $name);
		}
		else
		{
			throw new \RuntimeException(sprintf('Block not found: "%s"', $name));
		}
	}
public function renderBlock(OutputBuffer $out, $name)
	{
		$method = 'block_' . $name;
		
		if(method_exists($this, $method))
		{
			$this->$method($out);
		}
		elseif($this->getParent() !== NULL)
		{
			$this->parent->renderBlock($out, $name);
		}
		else
		{
			throw new \RuntimeException(sprintf('Block not found: "%s"', $name));
		}
	}
public function renderBlock ( OutputBuffer $ out , $ name ) { $ method = 'block_' . $ name ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ out ) ; } elseif ( $ this -> getParent ( ) !== NULL ) { $ this -> parent -> renderBlock ( $ out , $ name ) ; } else { throw new \ RuntimeException ( sprintf ( 'Block not found: "%s"' , $ name ) ) ; } }
Render contents of a named block.

@param OutputBuffer $out
@param string $name Name of the block to be rendered.

@throws \RuntimeException When no such block exists.
Render contents of a named block .