src/mako/view/compilers/Template.php
protected function nospaces(string $template): string
	{
		// Compile regular nospace blocks

		$template = preg_replace_callback('/{%\s*nospace\s*%}(.*?){%\s*endnospace\s*%}/is', function($matches)
		{
			return trim(preg_replace('/>\s+</', '><', $matches[1]));
		}, $template);

		// Compile buffered nospace blocks

		$template = preg_replace('/{%\s*nospace:buffered\s*%}(.*?){%\s*endnospace\s*%}/is', '<?php ob_start(); ?>$1<?php echo trim(preg_replace(\'/>\s+</\', \'><\', ob_get_clean())); ?>', $template);

		return $template;
	}
protected function nospaces(string $template): string
	{
		// Compile regular nospace blocks

		$template = preg_replace_callback('/{%\s*nospace\s*%}(.*?){%\s*endnospace\s*%}/is', function($matches)
		{
			return trim(preg_replace('/>\s+</', '><', $matches[1]));
		}, $template);

		// Compile buffered nospace blocks

		$template = preg_replace('/{%\s*nospace:buffered\s*%}(.*?){%\s*endnospace\s*%}/is', '<?php ob_start(); ?>$1<?php echo trim(preg_replace(\'/>\s+</\', \'><\', ob_get_clean())); ?>', $template);

		return $template;
	}
protected function nospaces ( string $ template ) : string { // Compile regular nospace blocks $ template = preg_replace_callback ( '/{%\s*nospace\s*%}(.*?){%\s*endnospace\s*%}/is' , function ( $ matches ) { return trim ( preg_replace ( '/>\s+</' , '><' , $ matches [ 1 ] ) ) ; } , $ template ) ; // Compile buffered nospace blocks $ template = preg_replace ( '/{%\s*nospace:buffered\s*%}(.*?){%\s*endnospace\s*%}/is' , '<?php ob_start(); ?>$1<?php echo trim(preg_replace(\'/>\s+</\', \'><\', ob_get_clean())); ?>' , $ template ) ; return $ template ; }
Compiles nospace blocks.

@param  string $template Template
@return string
Compiles nospace blocks .