src/mako/view/renderers/Template.php
public function output(string $name): void
	{
		$parent = $this->close();

		$output = current($this->blocks[$name]);

		unset($this->blocks[$name]);

		if(!empty($parent))
		{
			$output = str_replace('__PARENT__', $parent, $output);
		}

		echo $output;
	}
public function output(string $name): void
	{
		$parent = $this->close();

		$output = current($this->blocks[$name]);

		unset($this->blocks[$name]);

		if(!empty($parent))
		{
			$output = str_replace('__PARENT__', $parent, $output);
		}

		echo $output;
	}
public function output ( string $ name ) : void { $ parent = $ this -> close ( ) ; $ output = current ( $ this -> blocks [ $ name ] ) ; unset ( $ this -> blocks [ $ name ] ) ; if ( ! empty ( $ parent ) ) { $ output = str_replace ( '__PARENT__' , $ parent , $ output ) ; } echo $ output ; }
Output a template block.

@param string $name Block name
Output a template block .