public function compile($path) { $contents = $this->compileString($this->files->get($path)); if (!is_null($this->cachePath)) { $compiled_path = $this->getCompiledPath($path); $this->files->put($compiled_path, $contents); } return $compiled_path; }