public function compile( string$fromFile, string$toFile='' )
	{
		$fromFile= $this->getFilePath($fromFile);

		$result= $this->execute(new FileBuffer($this,$fromFile));

		if( $toFile ){
			return file_put_contents($toFile,$result);
		}else{
			return $result;
		}
	}
public function compile( string$fromFile, string$toFile='' )
	{
		$fromFile= $this->getFilePath($fromFile);

		$result= $this->execute(new FileBuffer($this,$fromFile));

		if( $toFile ){
			return file_put_contents($toFile,$result);
		}else{
			return $result;
		}
	}
public function compile ( string $ fromFile , string $ toFile = '' ) { $ fromFile = $ this -> getFilePath ( $ fromFile ) ; $ result = $ this -> execute ( new FileBuffer ( $ this , $ fromFile ) ) ; if ( $ toFile ) { return file_put_contents ( $ toFile , $ result ) ; } else { return $ result ; } }
Compiling a HTSL file into a HTML or PHP file.

@api

@access public

@param  string $fromFile
@param  string $toFile

@return int|string
Compiling a HTSL file into a HTML or PHP file .