final protected function display (bool $return=FALSE)
	{
		if (file_exists($this->file)):
			$output = file_get_contents($this->file);
			foreach ($this->assignedVariables as $key => $value) 
				$output = preg_replace('/{'.$key.'}/', $value, $output);
		else:
			$output = "*** Missing template error: {$this->file} ***";
		endif;

		if ($return)
			return $output;
		else
			echo $output;
	}
final protected function display (bool $return=FALSE)
	{
		if (file_exists($this->file)):
			$output = file_get_contents($this->file);
			foreach ($this->assignedVariables as $key => $value) 
				$output = preg_replace('/{'.$key.'}/', $value, $output);
		else:
			$output = "*** Missing template error: {$this->file} ***";
		endif;

		if ($return)
			return $output;
		else
			echo $output;
	}
final protected function display ( bool $ return = FALSE ) { if ( file_exists ( $ this -> file ) ) : $ output = file_get_contents ( $ this -> file ) ; foreach ( $ this -> assignedVariables as $ key => $ value ) $ output = preg_replace ( '/{' . $ key . '}/' , $ value , $ output ) ; else : $ output = "*** Missing template error: {$this->file} ***" ; endif ; if ( $ return ) return $ output ; else echo $ output ; }
Displays the template being generated
@param bool $return
@return mixed
Displays the template being generated