Example #1
0
 /**
  * Compile the view at the given path.
  *
  * @param  string $path
  * @return void
  */
 public function compile($path)
 {
     $file = $this->files->get($path);
     $contents = Template::compile($file);
     if (!is_null($this->cachePath)) {
         $compiledPath = $this->getCompiledPath($path);
         $this->files->put($compiledPath, $contents);
     }
 }