src/mako/view/compilers/Template.php
public function compile(): void
	{
		// Get teplate contents

		$contents = $this->fileSystem->get($this->template);

		// Compile template

		foreach($this->compileOrder as $method)
		{
			$contents = $this->$method($contents);
		}

		// Store compiled template

		$this->fileSystem->put($this->cachePath . '/' . md5($this->template) . '.php', trim($contents));
	}
public function compile(): void
	{
		// Get teplate contents

		$contents = $this->fileSystem->get($this->template);

		// Compile template

		foreach($this->compileOrder as $method)
		{
			$contents = $this->$method($contents);
		}

		// Store compiled template

		$this->fileSystem->put($this->cachePath . '/' . md5($this->template) . '.php', trim($contents));
	}
public function compile ( ) : void { // Get teplate contents $ contents = $ this -> fileSystem -> get ( $ this -> template ) ; // Compile template foreach ( $ this -> compileOrder as $ method ) { $ contents = $ this -> $ method ( $ contents ) ; } // Store compiled template $ this -> fileSystem -> put ( $ this -> cachePath . '/' . md5 ( $ this -> template ) . '.php' , trim ( $ contents ) ) ; }
Compiles templates into views.
Compiles templates into views .